aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-07-08 04:26:23 +0000
committerFuwn <[email protected]>2025-07-08 04:26:23 +0000
commit215d8529e35231f341d8384dd1eb810f0f07bdb1 (patch)
tree138e4bcafc79e3c2718ec908d82c9332450739f3 /examples
parentrefactor(router): Manually implement trailing slash clipper (diff)
downloadwindmark-215d8529e35231f341d8384dd1eb810f0f07bdb1.tar.xz
windmark-215d8529e35231f341d8384dd1eb810f0f07bdb1.zip
feat(router): Add options system
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!"),