From 70d6426fe444e193ebd73a1110570b5f43085539 Mon Sep 17 00:00:00 2001 From: user <user@cocal-machine.local> Date: Wed, 29 May 2024 15:00:31 +0200 Subject: [PATCH] wip: fix offline docs --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index b263aed..925a626 100644 --- a/app/main.py +++ b/app/main.py @@ -194,7 +194,7 @@ app.mount("/static", StaticFiles(directory="./app/static"), name="static") @app.get("/docs", include_in_schema=False) def custom_swagger_ui_html(): return get_swagger_ui_html( - openapi_url=app.openapi_url, + openapi_url="/api/openapi.json", title=app.title + " - Offline Swagger UI", swagger_js_url="/static/swagger.js", swagger_css_url="/static/swagger.css", -- GitLab