From 96eb0e0e4ae96dfc8933cabf1f22162864b85fc9 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Mon, 11 Jul 2022 14:10:47 +0200 Subject: [PATCH] Remove favicon from schema --- great_ai/deploy/routes/bootstrap_dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/great_ai/deploy/routes/bootstrap_dashboard.py b/great_ai/deploy/routes/bootstrap_dashboard.py index 89b7436..2989c95 100644 --- a/great_ai/deploy/routes/bootstrap_dashboard.py +++ b/great_ai/deploy/routes/bootstrap_dashboard.py @@ -14,8 +14,8 @@ PATH = Path(__file__).parent.resolve() def bootstrap_dashboard(app: FastAPI, function_name: str, documentation: str) -> None: dash_app = create_dash_app(function_name, app.version, documentation) - @app.get("/favicon.ico") - @app.get(f"{DASHBOARD_PATH}/_favicon.ico") + @app.get("/favicon.ico", include_in_schema=False) + @app.get(f"{DASHBOARD_PATH}/_favicon.ico", include_in_schema=False) def get_favicon() -> FileResponse: return FileResponse(PATH / "dashboard/assets/favicon.ico")