[][src]Macro wayfinder::get

macro_rules! get {
    (
        @get ($($modules:ident)+) $is_redirect:expr $(, $param:expr)*
    ) => { ... };
    (
        $root:ident $(:: $nested:ident)* $(, $param: expr)*
    ) => { ... };
    (
        -> $root:ident $(:: $nested:ident)*
    ) => { ... };
}

Create a Resource for an HTTP GET request.

let show_person = get!(People::Show);

Use the sigil -> at the start to indicate a redirect-style route.

let show_person_redirect = get!(-> People::Show);

Add query parameters after the handler name.

let search = get!(Search, param!(q: String));