aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-05 01:42:57 +0000
committerFuwn <[email protected]>2023-05-05 01:42:57 +0000
commit459d93761ade7056632aa2dcd64ff1744cf00f6b (patch)
tree3a700c6b72ca52727a69f4e9e06b8b4bde515796 /README.md
parentfeat(windmark): prelude feature flag (diff)
downloadwindmark-459d93761ade7056632aa2dcd64ff1744cf00f6b.tar.xz
windmark-459d93761ade7056632aa2dcd64ff1744cf00f6b.zip
docs: fix for prelude
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index fc7c523..99aa484 100644
--- a/README.md
+++ b/README.md
@@ -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