mirror of https://github.com/fafhrd91/actix-web
Add example in docs to illustrate route macro use
This commit is contained in:
parent
f6c59ae591
commit
8223d126b9
|
@ -145,6 +145,8 @@ pub fn patch(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||||
///
|
///
|
||||||
/// Syntax: `#[route("path"[, attributes])]`
|
/// Syntax: `#[route("path"[, attributes])]`
|
||||||
///
|
///
|
||||||
|
/// Example: `#[route("/", method="GET", method="HEAD")]`
|
||||||
|
///
|
||||||
/// ## Attributes
|
/// ## Attributes
|
||||||
///
|
///
|
||||||
/// - `"path"` - Raw literal string with path for which to register handler. Mandatory.
|
/// - `"path"` - Raw literal string with path for which to register handler. Mandatory.
|
||||||
|
|
Loading…
Reference in New Issue