fix(ui,auth): fix login overlay styles, PWA service worker scope, favicon, and update user config to kopri

This commit is contained in:
2026-10-05 11:19:56 +03:00
parent d82bb9e8e9
commit c51c505b61
5 changed files with 72 additions and 19 deletions
+12
View File
@@ -147,6 +147,18 @@ async def manifest_endpoint():
raise HTTPException(status_code=404, detail="Manifest not found")
@app.get("/favicon.ico", include_in_schema=False)
async def favicon_endpoint():
icon_path = config.BASE_DIR / "app" / "static" / "icons" / "icon-192.png"
if icon_path.exists():
return Response(
content=icon_path.read_bytes(),
media_type="image/png",
headers={"Cache-Control": "public, max-age=86400"},
)
raise HTTPException(status_code=404, detail="Favicon not found")
@app.get("/sw.js", include_in_schema=False)
async def service_worker_endpoint():
sw_path = config.BASE_DIR / "app" / "static" / "sw.js"