mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
Add fetch project by token repo functions.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user