summary refs log tree commit diff
path: root/api/src/middlewares/Authentication.ts
diff options
context:
space:
mode:
authorSamuel <34555296+Flam3rboy@users.noreply.github.com>2021-12-05 20:13:40 +0100
committerGitHub <noreply@github.com>2021-12-05 20:13:40 +0100
commit1b66f71d8cb972bdafe88b4559dcda8cfa42aa4d (patch)
tree758f88ab2ad3469d83f3771fa73e05c796f9ee5a /api/src/middlewares/Authentication.ts
parentMerge pull request #530 from erkinalp/patch-3 (diff)
parentMinor API work (diff)
downloadserver-1b66f71d8cb972bdafe88b4559dcda8cfa42aa4d.tar.xz
Merge pull request #536 from Thesourtimes/master
Diffstat (limited to 'api/src/middlewares/Authentication.ts')
-rw-r--r--api/src/middlewares/Authentication.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/api/src/middlewares/Authentication.ts b/api/src/middlewares/Authentication.ts

index 8fbdd2b7..20ba42d8 100644 --- a/api/src/middlewares/Authentication.ts +++ b/api/src/middlewares/Authentication.ts
@@ -3,17 +3,25 @@ import { HTTPError } from "lambert-server"; import { checkToken, Config, Rights } from "@fosscord/util"; export const NO_AUTHORIZATION_ROUTES = [ + //Authentication routes "/auth/login", "/auth/register", + "/auth/location-metadata", + //Routes with a seperate auth system "/webhooks/", + //Public information endpoints "/ping", "/gateway", "/experiments", + //Public kubernetes integration "/-/readyz", "/-/healthz", + //Client nalytics "/science", "/track", + //Public policy pages "/policies/instance", + //Asset delivery /\/guilds\/\d+\/widget\.(json|png)/ ];