mirror of
https://github.com/penpot/penpot.git
synced 2026-05-27 19:03:39 +00:00
Add fetch project by token repo functions.
This commit is contained in:
parent
9c37c19647
commit
b16bea31f9
@ -15,6 +15,16 @@
|
|||||||
(let [url (str url "/projects")]
|
(let [url (str url "/projects")]
|
||||||
(send! {:url url :method :get})))
|
(send! {:url url :method :get})))
|
||||||
|
|
||||||
|
(defmethod request :fetch/project
|
||||||
|
[_ id]
|
||||||
|
(let [url (str url "/projects/" id)]
|
||||||
|
(send! {:url url :method :get})))
|
||||||
|
|
||||||
|
(defmethod request :fetch/project-by-token
|
||||||
|
[_ token]
|
||||||
|
(let [url (str url "/projects-by-token/" token)]
|
||||||
|
(send! {:url url :method :get})))
|
||||||
|
|
||||||
(defmethod request :create/project
|
(defmethod request :create/project
|
||||||
[_ data]
|
[_ data]
|
||||||
(let [params {:url (str url "/projects")
|
(let [params {:url (str url "/projects")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user