Files
baserow/web-frontend/modules/core/services/template.js
T

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/`
)
},
}
}