summary refs log tree commit diff
path: root/src/api/middlewares
diff options
context:
space:
mode:
authorroot <root@nomchy-verse.com>2025-03-23 16:28:25 -0700
committerroot <root@nomchy-verse.com>2025-03-23 16:28:25 -0700
commit336b2df1d7ccad9f7d122febc86eb3b6d91bfbc5 (patch)
treec6a300c89226b244dd6a9252748133c6afdb8f63 /src/api/middlewares
parentUpdated webhooks to accept params as provided by djs (diff)
downloadserver-ts-336b2df1d7ccad9f7d122febc86eb3b6d91bfbc5.tar.xz
Fixed errors in authorization for webhooks with tokens
Diffstat (limited to 'src/api/middlewares')
-rw-r--r--src/api/middlewares/Authentication.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts

index b4f484776..f0f01252d 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts
@@ -32,7 +32,7 @@ export const NO_AUTHORIZATION_ROUTES = [ "POST /auth/reset", "GET /invites/", // Routes with a seperate auth system - /^(POST|HEAD) \/webhooks\/\d+\/\w+\/?/, // no token requires auth + /^(POST|HEAD|GET|PATCH|DELETE) \/webhooks\/\d+\/\w+\/?/, // no token requires auth // Public information endpoints "GET /ping", "GET /gateway",