Re-exports§
pub use auth::KeyName;
Modules§
Structs§
- AppState
- Shared application state passed to all handlers.
- Usage
Event - Per-request event emitted after a request completes. Embedders
subscribe to the
AppState::usage_eventsbroadcast channel to observe live traffic without scraping the Prometheus endpoint.
Constants§
Functions§
- log_
request - Middleware that logs every incoming HTTP request with method, path,
status, and latency. 2xx/3xx log at
info, 4xx/5xx atwarn./healthand/metricslog atdebugso probes don’t flood the default output. - router
- Build the Axum router with all API routes and admin routes.