mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
16 lines
382 B
JavaScript
16 lines
382 B
JavaScript
export default (client) => {
|
|
return {
|
|
fetchAll() {
|
|
return client.get('/templates/')
|
|
},
|
|
install(workspaceId, templateId) {
|
|
return client.post(`/templates/install/${workspaceId}/${templateId}/`)
|
|
},
|
|
asyncInstall(workspaceId, templateId) {
|
|
return client.post(
|
|
`/templates/install/${workspaceId}/${templateId}/async/`
|
|
)
|
|
},
|
|
}
|
|
}
|