aboutsummaryrefslogtreecommitdiff
path: root/examples/callbacks.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-05 01:33:55 +0000
committerFuwn <[email protected]>2023-05-05 01:33:55 +0000
commit7f0c497b103479caa9f63cc0e50101c90a60b7ef (patch)
treee448da50c46c429f6ca672aa070577766fffc9bc /examples/callbacks.rs
parentdocs(rossweisse): revert to implementation (diff)
downloadwindmark-7f0c497b103479caa9f63cc0e50101c90a60b7ef.tar.xz
windmark-7f0c497b103479caa9f63cc0e50101c90a60b7ef.zip
feat(windmark): prelude feature flag
Diffstat (limited to 'examples/callbacks.rs')
-rw-r--r--examples/callbacks.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/callbacks.rs b/examples/callbacks.rs
index 58826e2..9d4acc1 100644
--- a/examples/callbacks.rs
+++ b/examples/callbacks.rs
@@ -21,7 +21,7 @@ use windmark::context::HookContext;
#[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!"))
@@ -33,7 +33,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
)
})
.set_post_route_callback(
- |context: HookContext, content: &mut windmark::Response| {
+ |context: HookContext, content: &mut windmark::response::Response| {
content.content = content.content.replace("Hello", "Hi");
println!(