From 75d33426e76d9b7390b28d8be0e7f3bfa614b3a7 Mon Sep 17 00:00:00 2001 From: Shahar Ilany <31574996+ShaharIlany@users.noreply.github.com> Date: Wed, 24 Aug 2022 23:10:49 +0300 Subject: [PATCH] fix(tutorial006.py): remove unused --- docs_src/extending_openapi/tutorial006.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs_src/extending_openapi/tutorial006.py b/docs_src/extending_openapi/tutorial006.py index 6754a4888..e82706f6c 100644 --- a/docs_src/extending_openapi/tutorial006.py +++ b/docs_src/extending_openapi/tutorial006.py @@ -4,17 +4,11 @@ from fastapi.openapi.docs import ( RouterOptions, TryItCredentialPolicyOptions, get_stoplight_elements_html, - get_swagger_ui_oauth2_redirect_html, ) app = FastAPI(stoplight_elements_url=None) -@app.get(app.swagger_ui_oauth2_redirect_url, include_in_schema=False) -async def swagger_ui_redirect(): - return get_swagger_ui_oauth2_redirect_html() - - @app.get("/elements", include_in_schema=False) async def elements_html(): return get_stoplight_elements_html(