mirror of
https://github.com/penpot/penpot.git
synced 2026-05-07 09:08:33 +00:00
Changing the endpoint url of list and create images
This commit is contained in:
parent
0550e73034
commit
52b0b83259
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user