mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
Review fix by @miikka
This commit is contained in:
parent
fe19b57b01
commit
d21f051868
1 changed files with 2 additions and 4 deletions
|
|
@ -56,10 +56,8 @@
|
|||
{} x))
|
||||
|
||||
(defn resolve-routes [data {:keys [coerce] :as opts}]
|
||||
(cond-> (->> (walk data opts)
|
||||
(map-meta merge-meta))
|
||||
coerce (->> (mapv #(coerce % opts))
|
||||
(filterv identity))))
|
||||
(cond->> (->> (walk data opts) (map-meta merge-meta))
|
||||
coerce (into [] (keep #(coerce % opts)))))
|
||||
|
||||
(defn compile-route [[p m :as route] {:keys [compile] :as opts}]
|
||||
[p m (if compile (compile route opts))])
|
||||
|
|
|
|||
Loading…
Reference in a new issue