summary refs log tree commit diff
path: root/scripts/openapi.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/openapi.js')
-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: [] }];