Skip to main content

get

Attribute Macro get 

Source
#[get]
Expand description

Attach a GET route to a handler function.

§Example

#[get("/users/{id}")]
fn show_user(id: u64) { /* ... */ }