build_router

Function build_router 

Source
fn build_router(pool: PgPool) -> Router
Expand description

Builds the axum Router with all routes and shared state.

Extracted from serve so it can be exercised without standing up a TCP listener — useful for route-table regression tests and for driving the handlers via tower::ServiceExt::oneshot in integration tests.