loom-gateway · routes
Source declarations, signatures and documentation for routes.
Source: sigil/weave/tools/loom-gateway/src/routes/mod.rs. SHA-256: 833f8df55a5fb760a539e289bcf9012d659adce2b603512f7a337334bc5dc3bd.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
routes::api_router
Compose the api/v1 router. The resulting Router<AppState> takes
with_state(...) cleanly at the lib boundary. State is AppState
directly (Cloneable, just wraps an mpsc Sender + metadata) — no Arc
wrapper needed.
pub fn api_router() -> Router<AppState>;Source line: 20.