Skip to main content

build_router

Function build_router 

Source
pub fn build_router(state: RouterState) -> Router
Expand description

Builds the HTTP router with all registered routes.

This function constructs an axum router and registers all read-only introspection routes (health, ready, stats) with the provided state.

§Arguments

  • state - The shared router state containing configuration and projection

§Returns

An axum Router configured with all registered routes and the shared state.