mirror of https://github.com/tiangolo/fastapi.git
fix(tutorial006.py): remove unused
This commit is contained in:
parent
f275e35699
commit
75d33426e7
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue