pub fn normalize(input: &str) -> StringExpand description
Normalizes a user-supplied base path into a canonical form: an empty string for “no prefix”, otherwise a single leading slash and no trailing slash.
""/"/" → "", "dashboard"/"/dashboard/"/"//dashboard//" →
"/dashboard".