pub fn resolve_route_path(path: &str, route_base: &str) -> StringExpand description
Resolve a route path against a base path.
- Relative paths (
topics/:idor./topics/:id) are prepended with the base. - Absolute paths (
/topics/:id) are returned unchanged.
"topics/:id" + "/sections/1" → "/sections/1/topics/:id"
"./topics/:id" + "/sections/1" → "/sections/1/topics/:id"
"/topics/:id" + "/sections/1" → "/topics/:id"