macro_rules! route {
($name:ident, GET, $path:expr) => { ... };
($name:ident, POST, $path:expr) => { ... };
($name:ident, PUT, $path:expr) => { ... };
($name:ident, DELETE, $path:expr) => { ... };
($name:ident, PATCH, $path:expr) => { ... };
}Expand description
Define a route with method and path.
§Example
use actix_tower::prelude::*;
route!(get_user, GET, "/users/{id}");