Attribute Macro get

Source
#[get]
Expand description

§Syntax

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

§Attributes

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

§Examples

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