From 6909271fa6488c2ba285aa67f2faa502bd5b6be6 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 5 Apr 2023 02:47:07 +0000 Subject: feat(route): merge async and sync mount functions !! --- examples/windmark.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/windmark.rs b/examples/windmark.rs index 9c19cc3..9e23d6e 100644 --- a/examples/windmark.rs +++ b/examples/windmark.rs @@ -200,7 +200,7 @@ async fn main() -> Result<(), Box> { ) } }); - router.mount_async("/async", move |_| { + router.mount("/async", move |_| { let async_clicks = async_clicks.clone(); async move { @@ -211,7 +211,7 @@ async fn main() -> Result<(), Box> { Response::success(*clicks) } }); - router.mount_async("/async-nothing", |_| { + router.mount("/async-nothing", |_| { async { Response::success("This is an async route.") } }); -- cgit v1.2.3