Skip to main content

Module macros

Module macros 

Source
Expand description

Declarative routing macro.

The [routes!] macro builds an crate::state::AppWithState, crate::async_state::AsyncAppWithState, or any other builder that exposes .get(), .post(), .put(), .patch(), and .delete() methods.