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-20 14:56:53 +0100
committerGitHub <noreply@github.com>2021-12-20 14:56:53 +0100
commitdc9c18411e0bdebfdb268ff2786f876b243aeab1 (patch)
treeae18c32a582c965f7ec2cc784fc9b2904e6215c1 /api/src/middlewares/Authentication.ts
parentMerge pull request #539 from TimSchweiz/master (diff)
parentUpdate downloads.ts (diff)
downloadserver-dc9c18411e0bdebfdb268ff2786f876b243aeab1.tar.xz
Merge pull request #540 from Thesourtimes/master
General work on API
Diffstat (limited to '')
-rw-r--r--api/src/middlewares/Authentication.ts16
1 files changed, 9 insertions, 7 deletions
diff --git a/api/src/middlewares/Authentication.ts b/api/src/middlewares/Authentication.ts

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