delete_api

Attribute Macro delete_api 

Source
#[delete_api]
Expand description

§Syntax

#[delete_api("path"[, attributes])]

§Attributes

  • "path": Raw literal string with path for which to register handler.

§Examples

#[delete_api("/")]
async fn example() -> impl IntoResponse {
    "hello world"
}