pub fn router(engine: Arc<MnemoEngine>) -> RouterExpand description
Construct the Axum router for the Mnemo admin dashboard.
Mounts all admin API endpoints under /admin/api/ and the HTML dashboard
at /admin/. The router carries Arc<MnemoEngine> as shared state.
ยงRoutes
| Method | Path | Description |
|---|---|---|
| GET | /admin/ | HTML dashboard |
| GET | /admin/api/health | Health check |
| GET | /admin/api/stats | Aggregate statistics |
| GET | /admin/api/agents | List known agent IDs |
| GET | /admin/api/memories | Paginated memory browser |
| GET | /admin/api/events | Paginated event timeline |
| POST | /admin/api/quarantine/:id | Quarantine a memory |
| POST | /admin/api/unquarantine/:id | Release memory from quarantine |