Skip to main content

normalize_base_path

Function normalize_base_path 

Source
pub fn normalize_base_path(raw: &str) -> String
Expand description

Normalize a basePath to either / or /<segments>/ — exactly one leading and one trailing slash. Used to make matching deterministic.