From 625922062967156143c39cacbe2ab9f64ac2d2e4 Mon Sep 17 00:00:00 2001 From: "m.dabbagh" Date: Wed, 28 Jan 2026 22:10:24 +0330 Subject: [PATCH] disable swagger auth --- src/adapters/incoming/api_routes.py | 32 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/adapters/incoming/api_routes.py b/src/adapters/incoming/api_routes.py index 1b2d2dc..8367415 100644 --- a/src/adapters/incoming/api_routes.py +++ b/src/adapters/incoming/api_routes.py @@ -52,8 +52,8 @@ app = FastAPI( title="Text Processor API", description="Text extraction and chunking system using Hexagonal Architecture", version="1.0.0", - docs_url=None, - redoc_url=None, + # docs_url=None, + # redoc_url=None, ) router = APIRouter( @@ -364,20 +364,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