(request: Request)
| 161 | |
| 162 | @app.get(f"{settings.CONTEXT_PATH}/docs", include_in_schema=False) |
| 163 | async 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 | |
| 175 | mcp_app = FastAPI() |
nothing calls this directly
no test coverage detected