diff options
| author | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
| commit | d66da17c17239408f2ddbc2794621e2d947056a3 (patch) | |
| tree | e448da50c46c429f6ca672aa070577766fffc9bc /examples/mime.rs | |
| parent | docs(rossweisse): revert to implementation (diff) | |
| download | windmark-d66da17c17239408f2ddbc2794621e2d947056a3.tar.xz windmark-d66da17c17239408f2ddbc2794621e2d947056a3.zip | |
feat(windmark): prelude feature flag
Diffstat (limited to 'examples/mime.rs')
| -rw-r--r-- | examples/mime.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mime.rs b/examples/mime.rs index 9f592f5..93ebabb 100644 --- a/examples/mime.rs +++ b/examples/mime.rs @@ -19,11 +19,11 @@ #[windmark::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { - windmark::Router::new() + windmark::router::Router::new() .set_private_key_file("windmark_private.pem") .set_certificate_file("windmark_public.pem") .mount("/mime", |_| { - windmark::Response::success("Hello!".to_string()) + windmark::response::Response::success("Hello!".to_string()) .with_mime("text/plain") .clone() }) |