//! The v0 REST API. //! //! Bearer auth, agent-shaped resources. Paths stay close to the shape existing //! agent-mail tooling expects, so a client can target a self-hosted `OpenMail` //! with a base-URL swap. Where compatibility and a clean native shape conflict, //! the native shape wins and the difference is documented. pub mod auth; pub mod error; pub mod routes; pub use error::Error; use sqlx::PgPool; /// Everything a handler may reach. Deliberately small — a handler that needs /// something not in here is usually a handler doing too much. #[derive(Clone)] pub struct AppState { pub db: PgPool, }