feat(events): add SFM Event DB Manager for browsing, flagging, and deleting events

This commit is contained in:
2026-05-17 07:57:27 +00:00
parent 8cffd7dd5e
commit ef6484c350
4 changed files with 486 additions and 0 deletions
+9
View File
@@ -49,6 +49,15 @@ def admin_sfm_page(request: Request):
})
@router.get("/admin/events", response_class=HTMLResponse)
def admin_events_page(request: Request):
"""SFM Event DB Manager — browse, flag, and delete events across all units."""
return templates.TemplateResponse("admin_events.html", {
"request": request,
"sfm_base_url": SFM_BASE_URL,
})
@router.get("/api/admin/sfm/overview")
async def admin_sfm_overview() -> JSONResponse:
"""Aggregated SFM diagnostic snapshot.