Attribute Macro post

Source
#[post]
Expand description

§Syntax

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

§Attributes

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

§Examples

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