define_http_routes

Macro define_http_routes 

Source
macro_rules! define_http_routes {
    (
        $(
            group (
                path $path_prefix:literal;
                $(auth $auth_ty:ty;)?
                error $unexpected:ty;

                $(
                    $method:ident $path:literal $req:ty => $res:ty | $err:ty;
                )*
            );
        )*
    ) => { ... };
    (@impl_group auth $auth_ty:ty; $unexpected:ty; $path_prefix:literal; $(($method:ident, $path:literal, $req:ty, $res:ty, $err:ty))*) => { ... };
    (@impl_group $unexpected:ty; $path_prefix:literal; $(($method:ident, $path:literal, $req:ty, $res:ty, $err:ty))*) => { ... };
}