#[route]
Expand description
attribute macro for xitca-web
application.
§Pattern
#[route("path", method = <method>[, attributes])]
§Attributes
"path"
: string literal represent path register to http router."/foo"
for example.method = <method>
: function path of http method register to http router.method = get
for example.enclosed = <type>
: typed middleware applied to route.enclosed_fn = <async function>
: async function as middleware applied to route