fix(tutorial006.py): remove unused

This commit is contained in:
Shahar Ilany 2022-08-24 23:10:49 +03:00
parent f275e35699
commit 75d33426e7
1 changed files with 0 additions and 6 deletions

View File

@ -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(