summary refs log tree commit diff
path: root/api/src/middlewares/Authentication.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-16 20:49:07 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-16 20:49:07 +0200
commit1cd4b819171f9bbadb00b2e87d1a710ead355f95 (patch)
treee66bff65da570bd9d3c4c247ae84b4826bb302e6 /api/src/middlewares/Authentication.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-api (diff)
downloadserver-1cd4b819171f9bbadb00b2e87d1a710ead355f95.tar.xz
Revert ":construction: webhook"
This reverts commit f691aa4c5aa47c8a8085c7b01912a1c403ce8732.
Diffstat (limited to 'api/src/middlewares/Authentication.ts')
-rw-r--r--api/src/middlewares/Authentication.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/middlewares/Authentication.ts b/api/src/middlewares/Authentication.ts

index 32307f42..a300c786 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)/, - /\/webhooks\/\d+\/\w+/ // only exclude webhook calls with webhook token + /\/guilds\/\d+\/widget\.(json|png)/ ]; export const API_PREFIX = /^\/api(\/v\d+)?/;