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) {
|
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 {
|
||||||
|
|
Reference in New Issue