mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 06:31:37 +02:00
🎉 Add better feedback backend.
This commit is contained in:
parent
833944bebb
commit
0683c4a963
9 changed files with 26 additions and 60 deletions
|
@ -106,6 +106,12 @@
|
|||
(seq params))
|
||||
(send-mutation! id form)))
|
||||
|
||||
(defmethod mutation :send-feedback
|
||||
[id params]
|
||||
(let [uri (str cfg/public-uri "/api/feedback")]
|
||||
(->> (http/send! {:method :post :uri uri :body params})
|
||||
(rx/mapcat handle-response))))
|
||||
|
||||
(defmethod mutation :update-profile-photo
|
||||
[id params]
|
||||
(let [form (js/FormData.)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue