Skip to main content

router_with_state

Function router_with_state 

Source
pub fn router_with_state(state: AppState, auth: AuthConfig) -> Router
Expand description

Build the HTTP router with a pre-built state and default 16MB payload limit. Used by the daemon.