Use linear-router always if there are conflicting routes

This commit is contained in:
Tommi Reiman 2017-11-11 16:38:16 +02:00
parent de993abf62
commit 2f6bfb33f8

View file

@ -350,10 +350,10 @@
router (cond
router router
(and (= 1 (count routes)) (not wilds?)) single-static-path-router
conflicting linear-router
(not wilds?) lookup-router
all-wilds? prefix-tree-router
(not conflicting) mixed-router
:else prefix-tree-router)]
:else mixed-router)]
(when-let [conflicts (:conflicts opts)]
(when conflicting (conflicts conflicting)))