Skip to main content

router

Function router 

Source
pub fn router(
    backend: Arc<Service>,
    config: &AppConfig,
    shutdown: Receiver<bool>,
) -> Router
Expand description

Build only the API routes around an existing shared service. The port must be the actual listener port when validating Host headers.