mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 10:41:42 +02:00
💄 Improve json namespace API (and fix linter).
This commit is contained in:
parent
98d5789b1b
commit
c6054f7ab2
9 changed files with 42 additions and 39 deletions
|
@ -13,7 +13,6 @@
|
|||
[app.util.json :as json]
|
||||
[buddy.core.codecs :as bc]
|
||||
[buddy.core.hash :as bh]
|
||||
[clojure.java.io :as io]
|
||||
[ring.middleware.cookies :refer [wrap-cookies]]
|
||||
[ring.middleware.keyword-params :refer [wrap-keyword-params]]
|
||||
[ring.middleware.multipart-params :refer [wrap-multipart-params]]
|
||||
|
@ -36,8 +35,7 @@
|
|||
(t/read! reader)))
|
||||
|
||||
(parse-json [body]
|
||||
(let [reader (io/reader body)]
|
||||
(json/read reader)))
|
||||
(json/read body))
|
||||
|
||||
(parse [type body]
|
||||
(try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue