mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +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/`
|
|
)
|
|
},
|
|
}
|
|
}
|