summary refs log tree commit diff
path: root/src/api/middlewares/Authentication.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-09-19 00:44:29 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-09-19 00:44:29 +0200
commitb146d33aa0d244dff2dfb3dbab7a1cafefdcbbe9 (patch)
tree78a30fefdb1da8114931f698a753bf3b2fac642c /src/api/middlewares/Authentication.ts
parentMerge pull request #881 from fosscord/fix/notes_pr_broke_somehow (diff)
downloadserver-dev/rory/utils.tar.xz
Start work on adding a custom /util route root in api dev/rory/utils
Diffstat (limited to '')
-rw-r--r--src/api/middlewares/Authentication.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts

index 6d063953..741a2454 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts
@@ -44,6 +44,7 @@ declare global { export async function Authentication(req: Request, res: Response, next: NextFunction) { if (req.method === "OPTIONS") return res.sendStatus(204); + if (req.url.startsWith("/util")) return next(); const url = req.url.replace(API_PREFIX, ""); if (url.startsWith("/invites") && req.method === "GET") return next(); if (