diff options
| author | Fuwn <[email protected]> | 2025-07-08 04:26:23 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-07-08 04:26:23 +0000 |
| commit | c18fb350b60fcda464d4ca1b2eaaeedff962ecb5 (patch) | |
| tree | 138e4bcafc79e3c2718ec908d82c9332450739f3 /src/router_option.rs | |
| parent | refactor(router): Manually implement trailing slash clipper (diff) | |
| download | windmark-c18fb350b60fcda464d4ca1b2eaaeedff962ecb5.tar.xz windmark-c18fb350b60fcda464d4ca1b2eaaeedff962ecb5.zip | |
feat(router): Add options system
Diffstat (limited to 'src/router_option.rs')
| -rw-r--r-- | src/router_option.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/router_option.rs b/src/router_option.rs new file mode 100644 index 0000000..c99f3ab --- /dev/null +++ b/src/router_option.rs @@ -0,0 +1,6 @@ +/// Options that can be set for the `Router` +#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] +pub enum RouterOption { + /// Trim trailing slashes from the URL path + TrimTrailingSlashes, +} |