diff --git a/backend/app/main.py b/backend/app/main.py index 05c293b..5ff61c1 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -5,7 +5,7 @@ from datetime import datetime from fastapi import Depends, FastAPI, Request from fastapi.middleware.cors import CORSMiddleware -from fastapi.responses import HTMLResponse +from fastapi.responses import FileResponse, HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates @@ -369,6 +369,11 @@ async def index(request: Request): return templates.TemplateResponse(request, "index.html") +@app.get("/favicon.ico", include_in_schema=False) +async def favicon(): + return FileResponse(os.path.join(os.path.dirname(__file__), "static", "img", "favicon.ico")) + + # Individual page routes @app.get("/dashboard", response_class=HTMLResponse) async def dashboard(request: Request): diff --git a/backend/app/static/img/apple-touch-icon.png b/backend/app/static/img/apple-touch-icon.png new file mode 100644 index 0000000..6665deb Binary files /dev/null and b/backend/app/static/img/apple-touch-icon.png differ diff --git a/backend/app/static/img/favicon-16x16.png b/backend/app/static/img/favicon-16x16.png new file mode 100644 index 0000000..b174e6a Binary files /dev/null and b/backend/app/static/img/favicon-16x16.png differ diff --git a/backend/app/static/img/favicon-32x32.png b/backend/app/static/img/favicon-32x32.png new file mode 100644 index 0000000..8c3abba Binary files /dev/null and b/backend/app/static/img/favicon-32x32.png differ diff --git a/backend/app/static/img/favicon.ico b/backend/app/static/img/favicon.ico new file mode 100644 index 0000000..0fca4dd Binary files /dev/null and b/backend/app/static/img/favicon.ico differ diff --git a/backend/app/templates/layouts/base.html b/backend/app/templates/layouts/base.html index f3e5b98..7fdb424 100644 --- a/backend/app/templates/layouts/base.html +++ b/backend/app/templates/layouts/base.html @@ -4,7 +4,13 @@