via 2.0.0-gm.17

An async multi-threaded web framework for people who appreciate simplicity.
Documentation
#[macro_export]
macro_rules! rest {
    ($mod:path) => {
        (
            $crate::rest!($mod as collection),
            $crate::rest!($mod as member),
        )
    };
    ($mod:path as collection) => {{
        use $mod::{create, index};
        $crate::post(create).get(index)
    }};
    ($mod:path as member) => {{
        use $mod::{destroy, show, update};
        $crate::delete(destroy).patch(update).get(show)
    }};
    ($mod:path as $other:ident) => {{
        compile_error!(concat!(
            "incorrect rest! modifier \"",
            stringify!($other),
            "\"",
        ));
    }};
}