post_api

Attribute Macro post_api 

Source
#[post_api]
Expand description

§Syntax

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

§Attributes

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

§Examples

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