aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-07-08 05:30:21 +0000
committerFuwn <[email protected]>2025-07-08 05:30:21 +0000
commit6544d0dc7762b3ddf5d59db68629f2bd4a55650f (patch)
tree9523cccc017225cffdd599e930efb2e518eae285 /examples
parentdocs(router_option): Expand documentation (diff)
downloadwindmark-6544d0dc7762b3ddf5d59db68629f2bd4a55650f.tar.xz
windmark-6544d0dc7762b3ddf5d59db68629f2bd4a55650f.zip
feat(router): Add case-insensitive route matching option
Diffstat (limited to 'examples')
-rw-r--r--examples/fix_path.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/fix_path.rs b/examples/fix_path.rs
index 6ea8f9e..f0be8f7 100644
--- a/examples/fix_path.rs
+++ b/examples/fix_path.rs
@@ -17,14 +17,17 @@
//! `cargo run --example fix_path --features response-macros`
+use windmark::router_option::RouterOption;
+
#[windmark::main]
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::RemoveExtraTrailingSlash,
- windmark::router_option::RouterOption::AddMissingTrailingSlash,
+ RouterOption::RemoveExtraTrailingSlash,
+ RouterOption::AddMissingTrailingSlash,
+ RouterOption::AllowCaseInsensitiveLookup,
])
.mount(
"/close",