diff --git a/agent/cmd/behavision-setup/rsrc_windows_amd64.syso b/agent/cmd/behavision-setup/rsrc_windows_amd64.syso new file mode 100644 index 0000000..437c5af Binary files /dev/null and b/agent/cmd/behavision-setup/rsrc_windows_amd64.syso differ diff --git a/agent/rsrc_windows_amd64.syso b/agent/rsrc_windows_amd64.syso new file mode 100644 index 0000000..d0c1fbd Binary files /dev/null and b/agent/rsrc_windows_amd64.syso differ diff --git a/behavision/api.py b/behavision/api.py index 8bc49d9..ad79b77 100644 --- a/behavision/api.py +++ b/behavision/api.py @@ -155,6 +155,15 @@ def create_app(engine: Engine) -> FastAPI: def dashboard() -> str: return (_STATIC / "dashboard.html").read_text(encoding="utf-8") + @app.get("/static/favicon.png") + def favicon() -> Response: + # The one static asset besides the page itself. Served explicitly + # rather than mounting the directory: nothing else in there is meant + # to be reachable, and a mount would make that a matter of what lands + # in the folder. + return Response((_STATIC / "favicon.png").read_bytes(), media_type="image/png", + headers={"cache-control": "public, max-age=86400"}) + @app.get("/api/health") def health() -> dict: from .paths import describe diff --git a/behavision/static/dashboard.html b/behavision/static/dashboard.html index 76b3129..19c23f3 100644 --- a/behavision/static/dashboard.html +++ b/behavision/static/dashboard.html @@ -4,6 +4,7 @@