From 391beadb188cc253307d0a3381c0a644d8d21d4f Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 24 Mar 2023 15:56:23 +0800 Subject: [PATCH] Update main.py --- appmanage/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/appmanage/main.py b/appmanage/main.py index c4067a12..35c215fd 100644 --- a/appmanage/main.py +++ b/appmanage/main.py @@ -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()