Skip to main content

router

Function router 

Source
pub fn router(engine: Arc<MnemoEngine>) -> Router
Expand 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

MethodPathDescription
GET/admin/HTML dashboard
GET/admin/api/healthHealth check
GET/admin/api/statsAggregate statistics
GET/admin/api/agentsList known agent IDs
GET/admin/api/memoriesPaginated memory browser
GET/admin/api/eventsPaginated event timeline
POST/admin/api/quarantine/:idQuarantine a memory
POST/admin/api/unquarantine/:idRelease memory from quarantine