diff --git a/frontend/index.html b/frontend/index.html index d2da435..85ee33b 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,6 +3,7 @@ + GNEXUS CREDS diff --git a/frontend/public/logo.svg b/frontend/public/logo.svg new file mode 100644 index 0000000..7266ad5 --- /dev/null +++ b/frontend/public/logo.svg @@ -0,0 +1,8 @@ + + GNEXUS CREDS — shield keyhole + + + + + + \ No newline at end of file diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 76466df..3c9f826 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1009,7 +1009,7 @@ FileResponse: if path.startswith(("api/", "auth/", "mcp/", "mcp-protocol", "webhooks/")): raise AppError("not_found", "Not found.", status_code=404) + # Serve committed public assets (favicon, logo) before falling back + # to the SPA shell. + candidate = (FRONTEND_DIST / path).resolve() + if ( + candidate.is_file() + and candidate.is_relative_to(FRONTEND_DIST.resolve()) + ): + return FileResponse(candidate) return FileResponse(FRONTEND_DIST / "index.html") return app diff --git a/tests/test_backup.py b/tests/test_backup.py index a686f84..ebe2dd6 100644 --- a/tests/test_backup.py +++ b/tests/test_backup.py @@ -1,6 +1,5 @@ """Tests for backup module.""" -import json from pathlib import Path from unittest.mock import MagicMock, patch