Skip to main content

router

Function router 

Source
pub fn router(state: AppState) -> Router
Expand description

Build the application router over shared AppState.

Wires the reader routes, the health check, and the /static asset mount (the stylesheet, vendored htmx, and the keyboard handler, served from static/ via ServeDir). A TraceLayer gives per-request tracing.