macro_rules! routes {
($router:expr, {
$($method:ident $path:literal => $handler:expr),* $(,)?
}) => { ... };
}
Expand description
Macro to simplify route registration
macro_rules! routes {
($router:expr, {
$($method:ident $path:literal => $handler:expr),* $(,)?
}) => { ... };
}
Macro to simplify route registration