Skip to main content

Crate doido_controller_macros

Crate doido_controller_macros 

Source

Macros§

routes
Expands the routes! DSL (verbs, resources!, namespace!, scope!) into an axum::Router. Merged in from the former doido-router crate.

Attribute Macros§

after_action
Registers an after-action filter on the following action method. Usage: #[after_action(fn_name)]
before_action
Registers a before-action filter on the following action method. Usage: #[before_action(fn_name)] or #[before_action(fn_name, only = [action1, action2])]
controller
Marks an impl block as a controller. Rewrites action methods into axum-compatible handlers with filter chain support.