Skip to main content

delete

Attribute Macro delete 

Source
#[delete]
Expand description

Attribute macro to define a DELETE route.

§Arguments

  • path - the route path.
  • auth - optional boolean to tell if the route need to be authenticated.

§Example

#[delete("/path")]
fn my_delete_route() {
 // implementation
}