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"
);
-
Notifications
You must be signed in to change notification settings - Fork 0
A declarative macro to help with axum route captures and wildcards
License
myFavShrimp/axum_route_helper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A declarative macro to help with axum route captures and wildcards
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published