comment out swagger authentication
This commit is contained in:
parent
c6302bc792
commit
3aad734140
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user