feat: status includes is_admin, gear icon in header for admins

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-01 20:45:33 +02:00
parent 2376bf5d71
commit 81fbbfb56e
4 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ async def setup_post(body: dict):
@router.get("/status")
async def get_status(user: dict = Depends(current_user)):
return {"status": state.status, "username": user["username"]}
return {"status": state.status, "username": user["username"], "is_admin": user.get("is_admin", False)}
@router.post("/toggle")