1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-28 22:42:26 +00:00
bramw_baserow/web-frontend/modules/core/services/template.js
2025-04-02 11:20:19 +02:00

18 lines
454 B
JavaScript

export default (client) => {
return {
fetchAll() {
return client.get('/templates/')
},
fetch(slug) {
return client.get(`/templates/${slug}/`)
},
install(workspaceId, templateId) {
return client.post(`/templates/install/${workspaceId}/${templateId}/`)
},
asyncInstall(workspaceId, templateId) {
return client.post(
`/templates/install/${workspaceId}/${templateId}/async/`
)
},
}
}