summary refs log tree commit diff
path: root/src/api/middlewares
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-12-10 17:02:27 -0500
committerPuyodead1 <puyodead@proton.me>2023-12-10 17:02:27 -0500
commit99d9bf563fb5e157600824776b149ca03cbea47c (patch)
treee9289b7b381d7dbe59c235133228f77f25d53888 /src/api/middlewares
parentmember projection: select avatar (diff)
downloadserver-feat/webhooks.tar.xz
Start implementing webhooks feat/webhooks
Diffstat (limited to 'src/api/middlewares')
-rw-r--r--src/api/middlewares/Authentication.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts

index 9e41b453..a6cad51c 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts
@@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { checkToken, Rights } from "@spacebar/util"; import * as Sentry from "@sentry/node"; +import { checkToken, Rights } from "@spacebar/util"; import { NextFunction, Request, Response } from "express"; import { HTTPError } from "lambert-server"; @@ -32,7 +32,7 @@ export const NO_AUTHORIZATION_ROUTES = [ "/auth/forgot", "/auth/reset", // Routes with a seperate auth system - "/webhooks/", + /\/webhooks\/\d+\/\w+\/?/, // no token requires auth // Public information endpoints "/ping", "/gateway",