diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-14 22:15:55 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-14 22:15:55 +0200 |
commit | df2b83ac158be1e7233d8edce59033c15c193599 (patch) | |
tree | f818af80b70d0cd54bea2694d483b816a6979702 /api/src/middlewares/Authentication.ts | |
parent | fix #129 (diff) | |
download | server-df2b83ac158be1e7233d8edce59033c15c193599.tar.xz |
:construction: webhook
Diffstat (limited to 'api/src/middlewares/Authentication.ts')
-rw-r--r-- | api/src/middlewares/Authentication.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/middlewares/Authentication.ts b/api/src/middlewares/Authentication.ts index a300c786..32307f42 100644 --- a/api/src/middlewares/Authentication.ts +++ b/api/src/middlewares/Authentication.ts @@ -5,11 +5,11 @@ import { checkToken, Config } from "@fosscord/util"; export const NO_AUTHORIZATION_ROUTES = [ "/auth/login", "/auth/register", - "/webhooks/", "/ping", "/gateway", "/experiments", - /\/guilds\/\d+\/widget\.(json|png)/ + /\/guilds\/\d+\/widget\.(json|png)/, + /\/webhooks\/\d+\/\w+/ // only exclude webhook calls with webhook token ]; export const API_PREFIX = /^\/api(\/v\d+)?/; |