mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 06:41:37 +02:00
♻️ Replace mount with integrant.
This commit is contained in:
parent
31d7aacec1
commit
9f12456456
76 changed files with 2403 additions and 2215 deletions
|
@ -46,13 +46,13 @@
|
|||
|
||||
(defn send-query!
|
||||
[id params]
|
||||
(let [uri (str cfg/public-uri "/api/w/query/" (name id))]
|
||||
(let [uri (str cfg/public-uri "/api/rpc/query/" (name id))]
|
||||
(->> (http/send! {:method :get :uri uri :query params})
|
||||
(rx/mapcat handle-response))))
|
||||
|
||||
(defn send-mutation!
|
||||
[id params]
|
||||
(let [uri (str cfg/public-uri "/api/w/mutation/" (name id))]
|
||||
(let [uri (str cfg/public-uri "/api/rpc/mutation/" (name id))]
|
||||
(->> (http/send! {:method :post :uri uri :body params})
|
||||
(rx/mapcat handle-response))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue