feat: add dashboard icon
This commit is contained in:
5 files changed
+16
-9
No files matched your search
@@ -85,6 +85,11 @@ class Application:
|
||||
|
||||
os.makedirs(self.settings.static_dir, exist_ok=True)
|
||||
|
||||
@self.web.get("/icon.jpeg", include_in_schema=False)
|
||||
async def favicon() -> FileResponse:
|
||||
"""Serve the dashboard icon before the SPA guild fallback route."""
|
||||
return FileResponse(os.path.join(self.settings.static_dir, "icon.jpeg"))
|
||||
|
||||
@self.web.get("/{guild_route}", include_in_schema=False)
|
||||
async def guild_panel(guild_route: str) -> FileResponse:
|
||||
"""Serve the SPA for a direct link to a guild view."""
|
||||
|
||||
Reference in new issue
Block a user