comment out swagger authentication

This commit is contained in:
m.dabbagh 2026-01-24 17:06:25 +03:30
parent c6302bc792
commit 3aad734140

View File

@ -366,20 +366,20 @@ async def health_check() -> HealthCheckResponse:
# Protected Documentation Routes # Protected Documentation Routes
# ============================================================================= # =============================================================================
@app.get("/docs", include_in_schema=False) # @app.get("/docs", include_in_schema=False)
def api_docs(_: HTTPBasicCredentials = Depends(check_docs_credentials)): # def api_docs(_: HTTPBasicCredentials = Depends(check_docs_credentials)):
return get_swagger_ui_html( # return get_swagger_ui_html(
openapi_url="/openapi.json", # openapi_url="/openapi.json",
title="Protected Text-Processor API Docs" # title="Protected Text-Processor API Docs"
) # )
#
#
@app.get("/redoc", include_in_schema=False) # @app.get("/redoc", include_in_schema=False)
def api_docs(_: HTTPBasicCredentials = Depends(check_docs_credentials)): # def api_docs(_: HTTPBasicCredentials = Depends(check_docs_credentials)):
return get_redoc_html( # return get_redoc_html(
openapi_url="/openapi.json", # openapi_url="/openapi.json",
title="Protected Text-Processor API Docs" # title="Protected Text-Processor API Docs"
) # )
# ============================================================================= # =============================================================================
# Application Setup # Application Setup