1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-25 00:46:46 +00:00
bramw_baserow/web-frontend/modules/database/services/groupBy.js
2023-09-21 14:03:57 +00:00

20 lines
582 B
JavaScript

export default (client) => {
return {
fetchAll(viewId) {
return client.get(`/database/views/${viewId}/group_bys/`)
},
create(viewId, values) {
return client.post(`/database/views/${viewId}/group_bys/`, values)
},
get(viewGroupById) {
return client.get(`/database/views/group_by/${viewGroupById}/`)
},
update(viewGroupById, values) {
return client.patch(`/database/views/group_by/${viewGroupById}/`, values)
},
delete(viewGroupById) {
return client.delete(`/database/views/group_by/${viewGroupById}/`)
},
}
}