fix(ui,auth): fix login overlay styles, PWA service worker scope, favicon, and update user config to kopri
This commit is contained in:
1 parent
d82bb9e8e9
commit
c51c505b61
5 files changed
+72
-19
No files matched your search
+12
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user