MCPcopy Index your code
hub / github.com/dataease/SQLBot / custom_swagger_ui

Function custom_swagger_ui

backend/main.py:163–172  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

161
162@app.get(f"{settings.CONTEXT_PATH}/docs", include_in_schema=False)
163async def custom_swagger_ui(request: Request):
164 lang = get_language_from_request(request)
165 from fastapi.openapi.docs import get_swagger_ui_html
166 return get_swagger_ui_html(
167 openapi_url=f"./openapi.json?lang={lang}",
168 title="SQLBot API Docs",
169 swagger_favicon_url="https://fastapi.tiangolo.com/img/favicon.png",
170 swagger_js_url="./swagger-ui-bundle.js",
171 swagger_css_url="./swagger-ui.css",
172 )
173
174
175mcp_app = FastAPI()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected