diff --git a/website/netlify/functions/go-get.js b/website/netlify/functions/go-get.js index 4f8a49bcc..c18ee3974 100644 --- a/website/netlify/functions/go-get.js +++ b/website/netlify/functions/go-get.js @@ -2,18 +2,18 @@ const gitHubNamespace = "goauthentik"; exports.handler = async function (event, context) { let repo = ""; - if (event.path === "/") { - repo = "/authentik"; - } else if (event.path.startsWith("/api")) { - repo = "/client-go"; + if (event.path.startsWith("/api")) { + repo = "client-go"; + } else if (event.path.startsWith("/terraform-provider-authentik")) { + repo = "terraform-provider-authentik"; } else { - repo = event.path; + repo = "authentik"; } return { statusCode: 200, headers: { "content-type": "text/html", }, - body: ``, + body: ``, }; };