website: fix go-get repo
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
ec5e6c14a2
commit
257ac04be4
|
@ -2,16 +2,12 @@ const gitHubNamespace = "goauthentik";
|
||||||
|
|
||||||
exports.handler = async function (event, context) {
|
exports.handler = async function (event, context) {
|
||||||
let repo = "";
|
let repo = "";
|
||||||
switch (event.path) {
|
if (event.path === "/") {
|
||||||
case "/":
|
|
||||||
repo = "/authentik";
|
repo = "/authentik";
|
||||||
break;
|
} else if (event.path.startsWith("/api")) {
|
||||||
case "/api":
|
|
||||||
repo = "/client-go";
|
repo = "/client-go";
|
||||||
break;
|
} else {
|
||||||
default:
|
|
||||||
repo = event.path;
|
repo = event.path;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
|
|
Reference in New Issue