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
commit0a26b7baf24e33aecf789716a2ff3891d7185bdf (patch)
tree86bd65265bbd238237ae6b4e74f07d792d892875 /api/src/middlewares/Authentication.ts
parentMerge pull request #530 from erkinalp/patch-3 (diff)
parentMinor API work (diff)
downloadserver-0a26b7baf24e33aecf789716a2ff3891d7185bdf.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)/ ];