mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-25 00:46:46 +00:00
20 lines
582 B
JavaScript
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}/`)
|
|
},
|
|
}
|
|
}
|