aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/fix_path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/fix_path.rs b/examples/fix_path.rs
index fe8fb2c..e92376c 100644
--- a/examples/fix_path.rs
+++ b/examples/fix_path.rs
@@ -22,7 +22,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
windmark::router::Router::new()
.set_private_key_file("windmark_private.pem")
.set_certificate_file("windmark_public.pem")
- .set_fix_path(true)
+ .add_options(&[windmark::router_option::RouterOption::TrimTrailingSlashes])
.mount(
"/close",
windmark::success!("Visit '/close/'; you should be close enough!"),