From c18fb350b60fcda464d4ca1b2eaaeedff962ecb5 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 8 Jul 2025 04:26:23 +0000 Subject: feat(router): Add options system --- examples/fix_path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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> { 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!"), -- cgit v1.2.3