aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/windmark.rs4
1 files changed, 4 insertions, 0 deletions
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<dyn std::error::Error>> {
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
}