mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update main.py
This commit is contained in:
parent
d38eb8ce2d
commit
391beadb18
@ -30,7 +30,6 @@ def get_app():
|
||||
app.include_router(api_router_v1.get_api(), prefix="/api/v1")
|
||||
return app
|
||||
|
||||
|
||||
@app.get("/docs", include_in_schema=False)
|
||||
async def custom_swagger_ui_html():
|
||||
return get_swagger_ui_html(
|
||||
@ -41,7 +40,6 @@ async def custom_swagger_ui_html():
|
||||
swagger_css_url="/static/swagger-ui/swagger-ui.css",
|
||||
)
|
||||
|
||||
|
||||
@app.get(app.swagger_ui_oauth2_redirect_url, include_in_schema=False)
|
||||
async def swagger_ui_redirect():
|
||||
return get_swagger_ui_oauth2_redirect_html()
|
||||
|
Loading…
Reference in New Issue
Block a user