test application updated@build living space

This commit is contained in:
2024-11-15 19:23:08 +03:00
parent d2cc195ccf
commit 7e1b26f3c4
44 changed files with 261 additions and 321 deletions

View File

@@ -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": []}
]