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) {
let repo = "";
switch (event.path) {
case "/":
repo = "/authentik.git";
repo = "/authentik";
break;
case "/api":
repo = "/client-go.git";
repo = "/client-go";
break;
default:
repo = `${event.path}.git`;
repo = event.path;
break;
}
return {