mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +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")]
|
||||
(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
|
||||
[_ data]
|
||||
(let [params {:url (str url "/projects")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user