Skip to main content

version_path

Function version_path 

Source
pub fn version_path(version: Option<&str>, path: &str) -> String
Expand description

Apply URI API versioning: Some("1"), "/users""/v1/users". The single place the URI strategy lives — #[routes], the boot route log, and the OpenAPI document all route through it so the served/logged/documented paths can never drift.