mirror of
https://github.com/penpot/penpot.git
synced 2025-07-04 03:07:18 +02:00
Add fetch project by token repo functions.
This commit is contained in:
parent
9c37c19647
commit
b16bea31f9
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue