Attribute Macro spring_web::patch

source ·
#[patch]
Expand description

§Syntax

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

§Attributes

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

§Examples

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