Attribute Macro options

Source
#[options]
Expand description

§Syntax

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

§Attributes

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

§Examples

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