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