Expand description
Axum handlers for the two public endpoints.
Both handlers are async, but every one of them delegates the actual
SQLite work to AppState::with_connection which runs on Tokio’s
blocking-task pool. The handlers themselves do parsing, parameter
validation, and response shaping — nothing else.
Structs§
- Query
Params - Query-string parameters accepted by
GET /query. - Stats
Response - Wire shape for
GET /statsresponses.
Functions§
- query_
handler GET /query?q=<expr>&limit=<n>- stats_
handler GET /stats