Skip to main content

route_path_prefix

Function route_path_prefix 

Source
pub fn route_path_prefix(path: &str) -> String
Expand description

The key prefix a domain route pattern serves under: "/*" → "", "/app/*" and "/app" → "app". The twin of normalize_mount on the routing side.