[][src]Macro wayfinder::post

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

Create a Resource for an HTTP POST request.

let create_person = post!(People::Create);

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

let create_person_redirect = post!(-> People::Create);

Add query parameters after the handler name.

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