macro_rules! route_group {
($name:ident, $type:ty, $parent:ident, $path:literal) => { ... };
($name:ident, $type:ty) => { ... };
}
Expand description
Define a route group
A route group is used to group routes together. It is then used in the
create_router!
macro. It is effectively a type that implements the
Route
trait.
You can also use this macro to define a nested route group, simply add the parent group and the subpath as the third and fourth arguments