summary refs log tree commit diff
path: root/src/api/middlewares
diff options
context:
space:
mode:
authorTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-24 08:46:04 +0200
committerTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-24 08:46:04 +0200
commitdc81bcf90042be12e158aaa9aaafd779041957cf (patch)
tree3c1a418fcbe54d725f278b2a62a316edf8553453 /src/api/middlewares
parentAdd method to NO_AUTHORIZATION_ROUTES (diff)
downloadserver-ts-dc81bcf90042be12e158aaa9aaafd779041957cf.tar.xz
Run prettier
Diffstat (limited to 'src/api/middlewares')
-rw-r--r--src/api/middlewares/Authentication.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts

index 01076e8cb..ffefee8fb 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts
@@ -80,7 +80,8 @@ export async function Authentication( const url = req.url.replace(API_PREFIX, ""); if ( NO_AUTHORIZATION_ROUTES.some((x) => { - if (typeof x === "string") return (req.method + " " + url).startsWith(x); + if (typeof x === "string") + return (req.method + " " + url).startsWith(x); return x.test(req.method + " " + url); }) )