website: remove .git suffix for go import

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-18 17:37:10 +02:00
parent 909c4217bc
commit dbdea24290
1 changed files with 4 additions and 4 deletions

View File

@ -1,16 +1,16 @@
const gitHubNamespace = "goauthentik.io"; const gitHubNamespace = "goauthentik";
exports.handler = async function (event, context) { exports.handler = async function (event, context) {
let repo = ""; let repo = "";
switch (event.path) { switch (event.path) {
case "/": case "/":
repo = "/authentik.git"; repo = "/authentik";
break; break;
case "/api": case "/api":
repo = "/client-go.git"; repo = "/client-go";
break; break;
default: default:
repo = `${event.path}.git`; repo = event.path;
break; break;
} }
return { return {