From 0f16e32d934a3c83efa82ab3c205dcdbd3397645 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 6 Apr 2023 05:54:22 +0000 Subject: feat(macros): async response macros --- examples/windmark.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/windmark.rs b/examples/windmark.rs index 9e23d6e..7c46d9d 100644 --- a/examples/windmark.rs +++ b/examples/windmark.rs @@ -214,6 +214,10 @@ async fn main() -> Result<(), Box> { router.mount("/async-nothing", |_| { async { Response::success("This is an async route.") } }); + router.mount( + "/async-macro", + windmark::success_async!(async { "hi" }.await), + ); router.run().await } -- cgit v1.2.3