Changing the endpoint url of list and create images

This commit is contained in:
Jesús Espino 2016-05-20 22:43:29 +02:00
parent 0550e73034
commit 52b0b83259

View File

@ -41,7 +41,7 @@
(defmethod request :fetch/images
[_ {:keys [coll]}]
(let [params {:url (str url "/library/images/" coll)
(let [params {:url (str url "/library/image-collections/" coll "/images")
:method :get}]
(send! params)))
@ -50,7 +50,7 @@
(let [body (doto (js/FormData.)
(.append "file" (aget files 0))
(.append "id" id))
params {:url (str url "/library/images/" coll)
params {:url (str url "/library/image-collections/" coll "/images")
:method :post
:body body}]
(send! params)))