mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 16:31:11 +00:00
Use linear-router always if there are conflicting routes
This commit is contained in:
parent
de993abf62
commit
2f6bfb33f8
1 changed files with 2 additions and 2 deletions
|
|
@ -350,10 +350,10 @@
|
||||||
router (cond
|
router (cond
|
||||||
router router
|
router router
|
||||||
(and (= 1 (count routes)) (not wilds?)) single-static-path-router
|
(and (= 1 (count routes)) (not wilds?)) single-static-path-router
|
||||||
|
conflicting linear-router
|
||||||
(not wilds?) lookup-router
|
(not wilds?) lookup-router
|
||||||
all-wilds? prefix-tree-router
|
all-wilds? prefix-tree-router
|
||||||
(not conflicting) mixed-router
|
:else mixed-router)]
|
||||||
:else prefix-tree-router)]
|
|
||||||
|
|
||||||
(when-let [conflicts (:conflicts opts)]
|
(when-let [conflicts (:conflicts opts)]
|
||||||
(when conflicting (conflicts conflicting)))
|
(when conflicting (conflicts conflicting)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue