Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 293 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 293 Bytes

axum route helper

route!(SomeRoute => "/path/{}/with/{}", (:something: String, *parameter: u8));

assert_eq!(
    SomeRoute::handler_route(),
    "/path/:something/with/*parameter"
);

assert_eq!(
    SomeRoute::route_path(String::from("test"), 13),
    "/path/test/with/13"
);