website: fix go-get repo

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-03-03 10:32:18 +01:00
parent ec5e6c14a2
commit 257ac04be4
1 changed files with 6 additions and 10 deletions

View File

@ -2,16 +2,12 @@ const gitHubNamespace = "goauthentik";
exports.handler = async function (event, context) {
let repo = "";
switch (event.path) {
case "/":
repo = "/authentik";
break;
case "/api":
repo = "/client-go";
break;
default:
repo = event.path;
break;
if (event.path === "/") {
repo = "/authentik";
} else if (event.path.startsWith("/api")) {
repo = "/client-go";
} else {
repo = event.path;
}
return {
statusCode: 200,