aboutsummaryrefslogtreecommitdiff
path: root/src/router_option.rs
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
commitc18fb350b60fcda464d4ca1b2eaaeedff962ecb5 (patch)
tree138e4bcafc79e3c2718ec908d82c9332450739f3 /src/router_option.rs
parentrefactor(router): Manually implement trailing slash clipper (diff)
downloadwindmark-c18fb350b60fcda464d4ca1b2eaaeedff962ecb5.tar.xz
windmark-c18fb350b60fcda464d4ca1b2eaaeedff962ecb5.zip
feat(router): Add options system
Diffstat (limited to 'src/router_option.rs')
-rw-r--r--src/router_option.rs6
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,
+}