get_root_router

Function get_root_router 

Source
pub fn get_root_router(app_state: &GenericServerState) -> Router
Expand description

Returns preconfigured root router to use.

Usually it installs application config and state in affix_state and installs h3_header for switching protocol to QUIC, if used.