website: remove .git suffix for go import
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
909c4217bc
commit
dbdea24290
|
@ -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 {
|
||||
|
|
Reference in a new issue