From 3aad734140e18ec8fc03e4e83c274b9b68ff8d18 Mon Sep 17 00:00:00 2001 From: "m.dabbagh" Date: Sat, 24 Jan 2026 17:06:25 +0330 Subject: [PATCH] comment out swagger authentication --- src/adapters/incoming/api_routes.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/adapters/incoming/api_routes.py b/src/adapters/incoming/api_routes.py index bfae425..b5ee2c5 100644 --- a/src/adapters/incoming/api_routes.py +++ b/src/adapters/incoming/api_routes.py @@ -366,20 +366,20 @@ async def health_check() -> HealthCheckResponse: # Protected Documentation Routes # ============================================================================= -@app.get("/docs", include_in_schema=False) -def api_docs(_: HTTPBasicCredentials = Depends(check_docs_credentials)): - return get_swagger_ui_html( - openapi_url="/openapi.json", - title="Protected Text-Processor API Docs" - ) - - -@app.get("/redoc", include_in_schema=False) -def api_docs(_: HTTPBasicCredentials = Depends(check_docs_credentials)): - return get_redoc_html( - openapi_url="/openapi.json", - title="Protected Text-Processor API Docs" - ) +# @app.get("/docs", include_in_schema=False) +# def api_docs(_: HTTPBasicCredentials = Depends(check_docs_credentials)): +# return get_swagger_ui_html( +# openapi_url="/openapi.json", +# title="Protected Text-Processor API Docs" +# ) +# +# +# @app.get("/redoc", include_in_schema=False) +# def api_docs(_: HTTPBasicCredentials = Depends(check_docs_credentials)): +# return get_redoc_html( +# openapi_url="/openapi.json", +# title="Protected Text-Processor API Docs" +# ) # ============================================================================= # Application Setup