Skip to main content

apply_layers

Function apply_layers 

Source
pub fn apply_layers(
    web: Router<Container>,
    cfg: &ServerConfig,
) -> Router<Container>
Expand description

Apply every layer the server config calls for to the user’s web router, then merge any static-file mounts. Returns a ready-to-serve axum::Router.