pub fn normalize_base_path(raw: &str) -> String
Normalize a basePath to either / or /<segments>/ — exactly one leading and one trailing slash. Used to make matching deterministic.
/
/<segments>/