From d66da17c17239408f2ddbc2794621e2d947056a3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 5 May 2023 01:33:55 +0000 Subject: feat(windmark): prelude feature flag --- examples/simple_async_std.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/simple_async_std.rs') diff --git a/examples/simple_async_std.rs b/examples/simple_async_std.rs index 9896590..75cd66e 100644 --- a/examples/simple_async_std.rs +++ b/examples/simple_async_std.rs @@ -19,10 +19,12 @@ #[windmark::main] async fn main() -> Result<(), Box> { - windmark::Router::new() + windmark::router::Router::new() .set_private_key_file("windmark_private.pem") .set_certificate_file("windmark_public.pem") - .mount("/", |_| windmark::Response::success("Hello, async-std!")) + .mount("/", |_| { + windmark::response::Response::success("Hello, async-std!") + }) .run() .await } -- cgit v1.2.3