Codebase list comidi-clojure / 4e5c91b
(TK-464) Update to bidi 2.1.3 This commit updates bidi to 2.1.3. Due to a schema change in bidi that no longer allows empty lists, this commit also updates the recursion in `update-route-info` to no longer recurse when the processing the last element in the list. Maggie Dreyer 5 years ago
2 changed file(s) with 3 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
55
66 :min-lein-version "2.7.1"
77
8 :parent-project {:coords [puppetlabs/clj-parent "0.4.3"]
8 :parent-project {:coords [puppetlabs/clj-parent "1.6.0"]
99 :inherit [:managed-dependencies]}
1010
1111 :dependencies [[org.clojure/clojure]
1212
13 [bidi "2.0.12"]
13 [bidi "2.1.3"]
1414 [compojure]
1515 [prismatic/schema]
1616 [puppetlabs/kitchensink]]
166166 (update-in route-info [:path] conj "!")
167167
168168 (sequential? pattern)
169 (if-let [next (first pattern)]
170 (update-route-info*
171 (update-in route-info [:path] conj next)
172 (rest pattern))
173 route-info)
169 (update-in route-info [:path] into pattern)
174170
175171 :else
176172 (update-in route-info [:path] conj pattern)))