This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-20
Channels
- # announcements (1)
- # beginners (65)
- # calva (16)
- # cider (44)
- # clara (16)
- # clojure (84)
- # clojure-dev (48)
- # clojure-europe (5)
- # clojure-finland (4)
- # clojure-houston (1)
- # clojure-italy (19)
- # clojure-nl (27)
- # clojure-russia (6)
- # clojure-spec (37)
- # clojure-uk (123)
- # clojured (11)
- # clojurescript (21)
- # datomic (40)
- # duct (4)
- # emacs (6)
- # figwheel (4)
- # figwheel-main (5)
- # fulcro (34)
- # jackdaw (8)
- # juxt (117)
- # kaocha (3)
- # klipse (1)
- # leiningen (33)
- # luminus (2)
- # nyc (3)
- # off-topic (29)
- # om (1)
- # pedestal (7)
- # planck (4)
- # re-frame (27)
- # reagent (8)
- # reitit (5)
- # rum (2)
- # shadow-cljs (428)
- # spacemacs (5)
- # tools-deps (15)
- # yada (6)
can anyone offer advice on how to disambiguate these routes?
["/custom/notes/images/storage-parameters" :post [...]]
["/custom/notes/:id" :get [...]]
["/custom/notes/:id" :patch [...]]
["/custom/notes/:id/graphic" :get [...]]
["/custom/notes/:id/production-file" :post [...]]
@ccann, This behavior to be independent of routing syntax because routes all get expanded to the verbose form. What you are observing is expected behavior for the prefix tree router. As per https://github.com/pedestal/pedestal/pull/330
> The prefix-tree router also changes some of the routing behavior. In the linear-search, you could have routes like /one/:wild
and /one/two
, the latter being a hard match and the former picking up any wildcard URL matches (not /one/two). In the prefix-tree, this isn’t allowed, and one/:wild
will always be matched. This change also encourages “best practices” and removes the possibility of subtle bugs introduced by human error.