mirror of
https://github.com/metosin/reitit.git
synced 2025-12-22 18:41:10 +00:00
Support Clojure 1.9.0
This commit is contained in:
parent
e41a50cb80
commit
1d5d5f663b
1 changed files with 3 additions and 3 deletions
|
|
@ -296,9 +296,9 @@
|
|||
(let [fields (keys params)]
|
||||
(if (some qualified-keyword? fields)
|
||||
params
|
||||
(let [name (gensym "PathParams")
|
||||
ctor (symbol (str "map->" name))]
|
||||
(eval `(do (defrecord ~name ~(mapv symbol fields)) (~ctor {}))))))))))
|
||||
(let [sym (gensym "PathParams")
|
||||
ctor (symbol (str "map->" sym))]
|
||||
(eval `(do (defrecord ~sym ~(mapv (comp symbol name) fields)) (~ctor {}))))))))))
|
||||
|
||||
(defn insert
|
||||
"Returns a trie with routes added to it."
|
||||
|
|
|
|||
Loading…
Reference in a new issue