Remove favicon from schema
This commit is contained in:
parent
dda4e55f9e
commit
96eb0e0e4a
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ PATH = Path(__file__).parent.resolve()
|
||||||
def bootstrap_dashboard(app: FastAPI, function_name: str, documentation: str) -> None:
|
def bootstrap_dashboard(app: FastAPI, function_name: str, documentation: str) -> None:
|
||||||
dash_app = create_dash_app(function_name, app.version, documentation)
|
dash_app = create_dash_app(function_name, app.version, documentation)
|
||||||
|
|
||||||
@app.get("/favicon.ico")
|
@app.get("/favicon.ico", include_in_schema=False)
|
||||||
@app.get(f"{DASHBOARD_PATH}/_favicon.ico")
|
@app.get(f"{DASHBOARD_PATH}/_favicon.ico", include_in_schema=False)
|
||||||
def get_favicon() -> FileResponse:
|
def get_favicon() -> FileResponse:
|
||||||
return FileResponse(PATH / "dashboard/assets/favicon.ico")
|
return FileResponse(PATH / "dashboard/assets/favicon.ico")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue