Macro router

Source
macro_rules! router {
    ([$($method:ident),+] => @ $($m:ident)::* $(/<**$rest:ident>)?) => { ... };
    ([$($method:ident),+] => ... @ $($m:ident)::* $(/<**$rest:ident>)?) => { ... };
    ([$($method:ident),+] => $(/)? $($prefix:ident)/+ / @ $($m:ident)::* $(/<**$rest:ident>)?) => { ... };
    (IN $e:expr, $m:path , $($method:ident),+) => { ... };
}
Expand description

Construct a router

/opt path1/path2/opt @controller /<**wildcard_path>opt