Skip to content

Commit 761c3c8

Browse files
perf: Swagger page fails to load remote CDN resources
1 parent 8569736 commit 761c3c8

File tree

3 files changed

+85715
-0
lines changed

3 files changed

+85715
-0
lines changed

backend/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ async def custom_swagger_ui(request: Request):
166166
openapi_url=f"/openapi.json?lang={lang}",
167167
title="SQLBot API Docs",
168168
swagger_favicon_url="https://fastapi.tiangolo.com/img/favicon.png",
169+
swagger_js_url="/swagger-ui-bundle.js",
170+
swagger_css_url="/swagger-ui.css",
169171
)
170172

171173

0 commit comments

Comments
 (0)