test application updated@build living space
This commit is contained in:
@@ -43,7 +43,9 @@ def create_app(routers):
|
||||
if route.include_in_schema:
|
||||
methods = [method.lower() for method in getattr(route, "methods")]
|
||||
for method in methods:
|
||||
if path not in Config.INSECURE_PATHS:
|
||||
insecure_paths = Config.INSECURE_PATHS.copy()
|
||||
insecure_paths.remove("/authentication/select")
|
||||
if path not in insecure_paths:
|
||||
openapi_schema["paths"][path][method]["security"] = [
|
||||
{"Bearer Auth": []}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user