Macro app

Source
app!() { /* proc-macro */ }
Expand description

provides the entry point for lambdas to handle routing

§Syntax

app! { #EVENT, …#HANDLERS, #[default] 404_HANDLER, …#HANDLERS }

you are not required to put #[not_found] for the 404 handler at the bottom but it is recommended

§Examples

app! {
    event,
    my_route,
    #[not_found]
    not_found,
}