options_api

Attribute Macro options_api 

Source
#[options_api]
Expand description

§Syntax

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

§Attributes

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

§Examples

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