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§

controller
Marks an impl block as a controller. Rewrites action methods into axum-compatible handlers, wiring in any filters.
helper
Marks a struct as a controller helper. Generates a [doido_controller::Helper] implementation that carries the snake_case helper name (PostsHelper"posts_helper"), matching the app/helpers/<name>_helper.rs convention. Import the helper in controllers and call its associated functions.