Skip to content

A declarative macro to help with axum route captures and wildcards

License

Notifications You must be signed in to change notification settings

myFavShrimp/axum_route_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
);

About

A declarative macro to help with axum route captures and wildcards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages