Macro get
Source macro_rules! get {
($path:expr, $handler:expr) => { ... };
}
Expand description
Create a GET route definition with compile-time path validation
§Example
ⓘget!("/users", controllers::user::index).name("users.index")
§Compile Error
Fails to compile if path doesn’t start with ‘/’.