21 lines
559 B
Python
21 lines
559 B
Python
|
from fastapi import APIRouter
|
||
|
|
||
|
from fastapi.openapi.docs import get_swagger_ui_html
|
||
|
|
||
|
from config import conf
|
||
|
|
||
|
|
||
|
router = APIRouter()
|
||
|
|
||
|
|
||
|
@router.get("", include_in_schema=False)
|
||
|
async def custom_swagger_ui_html():
|
||
|
return get_swagger_ui_html(
|
||
|
openapi_url=conf.swagger.openapi_url,
|
||
|
title=conf.swagger.title,
|
||
|
oauth2_redirect_url=conf.swagger.oauth2_redirect_url,
|
||
|
swagger_js_url=conf.swagger.swagger_js_url,
|
||
|
swagger_css_url=conf.swagger.swagger_css_url,
|
||
|
swagger_favicon_url=conf.swagger.swagger_favicon_url,
|
||
|
)
|