summary refs log tree commit diff
path: root/src/api/middlewares/Authentication.ts
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-19 16:31:35 +0200
committerRory& <root@rory.gay>2025-10-19 20:15:47 +0200
commitbbd0617d53b262ccb642b9fff6d0eb9ea0c9936e (patch)
tree88ec7ee7196166f443d1b9fadaf4a27196a64b22 /src/api/middlewares/Authentication.ts
parentMake reconicle migration not suck (diff)
downloadserver-ts-bbd0617d53b262ccb642b9fff6d0eb9ea0c9936e.tar.xz
fix: interaction callback
Diffstat (limited to 'src/api/middlewares/Authentication.ts')
-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 83b98925..0821f811 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts
@@ -32,7 +32,7 @@ export const NO_AUTHORIZATION_ROUTES = [ "GET /invites/", // Routes with a seperate auth system /^(POST|HEAD|GET|PATCH|DELETE) \/webhooks\/\d+\/\w+\/?/, // no token requires auth - // /^POST \/interactions\/\d+\/\w+\/callback/, // This is marked as Unauthoricated route on https://discord.food. But when it is then not all requests have req.user_id? + /^POST \/interactions\/\d+\/[A-Za-z0-9_-]+\/callback/, // Public information endpoints "GET /ping", "GET /gateway",