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
|
||||
# =============================================================================
|
||||
|
||||
@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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user