build_router

Function build_router 

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

Build the application router with all routes and middleware.

Extracted from main so integration tests can exercise the full route table in-process (via tower’s oneshot) without binding a socket.