aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/fix_path.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/fix_path.rs b/examples/fix_path.rs
index e92376c..95761ea 100644
--- a/examples/fix_path.rs
+++ b/examples/fix_path.rs
@@ -22,7 +22,10 @@ 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")
- .add_options(&[windmark::router_option::RouterOption::TrimTrailingSlashes])
+ .add_options(&[
+ windmark::router_option::RouterOption::TrimTrailingSlashes,
+ windmark::router_option::RouterOption::AddMissingTrailingSlash,
+ ])
.mount(
"/close",
windmark::success!("Visit '/close/'; you should be close enough!"),