mirror of https://github.com/tiangolo/fastapi.git
Fix comment in test
This commit is contained in:
parent
5faf2ed451
commit
a63a0e8093
|
|
@ -110,7 +110,7 @@ def test_redoc_docs_with_static_assets(
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
async def custom_redoc_html(req: Request):
|
async def custom_redoc_html(req: Request):
|
||||||
"""
|
"""
|
||||||
Sets up a localized version of the Swagger (OpenAPI) docs that can be run without assets from the Internet.
|
Sets up a localized version of the Redoc docs that can be run without assets from the Internet.
|
||||||
"""
|
"""
|
||||||
root_path = req.scope.get("root_path", "").rstrip("/")
|
root_path = req.scope.get("root_path", "").rstrip("/")
|
||||||
return get_redoc_html(
|
return get_redoc_html(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue