Skip to main content

controller_route

Function controller_route 

Source
pub fn controller_route(name: &str) -> Result<String>
Expand description

Exact route-builder declaration for a generated controller. Routing stays explicit because route modules may contain arbitrary application Rust. The suggested path is the snake-case name without _controller; customize it before adding this line to routes/api.rs’s Routes chain (mounted at /api).