diff options
| author | Fuwn <[email protected]> | 2025-07-08 05:16:56 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-07-08 05:16:56 +0000 |
| commit | 1381dfc93851550fe05d24d69401b1ba3af1add9 (patch) | |
| tree | a8ea7ee0143adf8df771b8f49cb192f8bd808eb2 /examples/fix_path.rs | |
| parent | feat(router): Add missing trailing slash corrector (diff) | |
| download | windmark-1381dfc93851550fe05d24d69401b1ba3af1add9.tar.xz windmark-1381dfc93851550fe05d24d69401b1ba3af1add9.zip | |
refactor(RouterOption): Rename trailing slash trimming option
Diffstat (limited to 'examples/fix_path.rs')
| -rw-r--r-- | examples/fix_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/fix_path.rs b/examples/fix_path.rs index 95761ea..6ea8f9e 100644 --- a/examples/fix_path.rs +++ b/examples/fix_path.rs @@ -23,7 +23,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { .set_private_key_file("windmark_private.pem") .set_certificate_file("windmark_public.pem") .add_options(&[ - windmark::router_option::RouterOption::TrimTrailingSlashes, + windmark::router_option::RouterOption::RemoveExtraTrailingSlash, windmark::router_option::RouterOption::AddMissingTrailingSlash, ]) .mount( |