Skip to main content

strip_v1_prefix

Function strip_v1_prefix 

Source
fn strip_v1_prefix(path: &str) -> &str
Expand description

Strips at most one leading /v1 path segment so paths from both the versioned and unversioned API mounts can be compared against the unprefixed endpoint constants.