macro_rules! dyn_put {
($name:ident, $($tt:tt)*) => { ... };
(
$name:ident<$data_ty:ty>,
$path:expr,
|$($data:ident),*| -> $ret_type:ty $block:block
) => { ... };
}Expand description
Dynamic put request handler.
Example
use fire::dyn_put;
type Data = ();
dyn_put! {
RouteName, "/files/",
|_req| -> &'static str {
"Hello, World!"
}
}