app!() { /* proc-macro */ }
Expand description
provides the entry point for lambdas to handle routing
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
app! {
event,
my_route,
#[not_found]
not_found,
}