🎉 Add better feedback backend.

This commit is contained in:
Andrey Antukh 2021-03-01 12:14:30 +01:00
parent 833944bebb
commit 0683c4a963
9 changed files with 26 additions and 60 deletions

View file

@ -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.)]