macro_rules! static_route {
    ($name:ident, $($tt:tt)*) => { ... };
    (
		$name:ident<$data_ty:ty>,
		$path:expr,
		$method:ident,
		|$($data:ident),*| -> $ret_type:ty $block:block
	) => { ... };
}
Expand description

Static Route

If possible use the other macros.

Example

use fire::static_route;
 
type Data = ();
 
static_route! {
	RouteName, "/", Get,
	|_req| -> &'static str {
		"Hello, World!"
	}
}