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
commitd2d7dd0561e9ccfbf68caccafffa114a45b29fc0 (patch)
treecdfd1b028348ecadd53b4d3b1a77c5f117e446aa /api/src/middlewares/Authentication.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-api (diff)
downloadserver-d2d7dd0561e9ccfbf68caccafffa114a45b29fc0.tar.xz
Revert ":construction: webhook"
This reverts commit df2b83ac158be1e7233d8edce59033c15c193599.
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+)?/;