Skip to main content

Crate authx_dashboard

Crate authx_dashboard 

Source
Expand description

authx-dashboard — embedded admin dashboard (HTMX-powered)

§Mounting

use authx_dashboard::DashboardState;

let dashboard = DashboardState::new(store.clone(), events.clone(), 86400);
let app = Router::new()
    .nest("/_authx", dashboard.router("my-secret-admin-token"));

All API routes require Authorization: Bearer <admin_token>. The UI page itself is served without authentication so the login form can be presented; the embedded JS stores the token in sessionStorage.

Structs§

DashboardState
Shared state threaded through every dashboard route.