Skip to main content

api_router

Function api_router 

Source
pub(crate) fn api_router<TYPES: NodeType>() -> Router<Arc<RwLock<OrchestratorState<TYPES>>>>
Expand description

Builds the api module’s routes. Existing clients call these both directly (e.g. api/identity) and under a major-version prefix (v0/api/identity), so the /api tree is mounted at the root and under /v0.