Add example in docs to illustrate route macro use

This commit is contained in:
Matt Gathu 2020-09-13 20:01:07 +02:00
parent f6c59ae591
commit 8223d126b9
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ pub fn patch(args: TokenStream, input: TokenStream) -> TokenStream {
///
/// Syntax: `#[route("path"[, attributes])]`
///
/// Example: `#[route("/", method="GET", method="HEAD")]`
///
/// ## Attributes
///
/// - `"path"` - Raw literal string with path for which to register handler. Mandatory.