summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-24 08:43:22 +0200
committerTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-24 08:43:22 +0200
commit74f20898a3f5b014124c6281b08de087ef6fa467 (patch)
tree9a2d2d95d937abfe7c884675226c8fc7fec755eb /scripts
parentMerge pull request #1196 from DEVTomatoCake/feat/list-create-developer-teams (diff)
downloadserver-ts-74f20898a3f5b014124c6281b08de087ef6fa467.tar.xz
Add method to NO_AUTHORIZATION_ROUTES
Diffstat (limited to 'scripts')
-rw-r--r--scripts/openapi.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/openapi.js b/scripts/openapi.js

index 62623800..e6c52a17 100644 --- a/scripts/openapi.js +++ b/scripts/openapi.js
@@ -134,8 +134,8 @@ function apiRoutes(missingRoutes) { if ( !NO_AUTHORIZATION_ROUTES.some((x) => { - if (typeof x === "string") return path.startsWith(x); - return x.test(path); + if (typeof x === "string") return (method.toUpperCase() + " " + path).startsWith(x); + return x.test(method.toUpperCase() + " " + path); }) ) { obj.security = [{ bearer: [] }];