diff options
| author | Fuwn <[email protected]> | 2023-05-05 01:42:57 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-05 01:42:57 +0000 |
| commit | 459d93761ade7056632aa2dcd64ff1744cf00f6b (patch) | |
| tree | 3a700c6b72ca52727a69f4e9e06b8b4bde515796 /README.md | |
| parent | feat(windmark): prelude feature flag (diff) | |
| download | windmark-459d93761ade7056632aa2dcd64ff1744cf00f6b.tar.xz windmark-459d93761ade7056632aa2dcd64ff1744cf00f6b.zip | |
docs: fix for prelude
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,12 +42,12 @@ tokio = { version = "1.26.0", features = ["full"] } #[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("/", windmark::success!("Hello, World!")) .set_error_handler(|_| - windmark::Response::permanent_failure("This route does not exist!") + windmark::response::Response::permanent_failure("This route does not exist!") ) .run() .await |