Skip to main content

resource

Function resource 

Source
pub fn resource<R: Resource>(path: &str) -> Router<R::State>
Expand description

Mounts a Resource at path, wiring the five CRUD routes onto it.

let router = Router::new().merge(resource::<Notes>("/notes"));