Expand description
Axum handlers for the three public endpoints.
All handlers are async, but every one that touches the database
delegates 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.
GET /version is the exception: it returns compile-time constants only
and never opens the database.
Structs§
- Query
Params - Query-string parameters accepted by
GET /query. - Stats
Response - Wire shape for
GET /statsresponses. - Version
Response - Wire shape for
GET /versionresponses.
Functions§
- query_
handler GET /query?q=<expr>&limit=<n>- stats_
handler GET /stats- version_
handler GET /version