Skip to main content

rest_controller

Attribute Macro rest_controller 

Source
#[rest_controller]
Expand description

Marks a struct as a Nova controller. The macro currently adds a nova_metadata() helper; route handlers are attached via get/post/... attributes on impl functions.