pub fn normalize_pathname(request_url: &str, base_path: &str) -> String
Normalize a request URL pathname by removing the auth base path and trailing slashes.