macro_rules! routes {
($($handler_seg:ident $(:: $handler_rest:ident)*),+ $(,)?) => { ... };
(@collect $r:ident, prefix: [$($prefix:tt)*], rest: $head:ident :: $($tail:tt)+) => { ... };
(@collect $r:ident, prefix: [$($prefix:tt)*], rest: $last:ident) => { ... };
}Expand description
Wraps utoipa_axum::routes! and augments the schemas vector
with everything each handler’s argument types reference.
Accepts either ident handlers (routes!(list_models)) or
qualified paths (routes!(pets::get_pet)), matching the upstream
macro’s caller surface.