1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/database/services/sort.js
Nigel Gott 3dbd67fde3 Various security improvements for Baserow + docker images:
- upgrade dependencies
- add docker lint + upgrade in containers to ensure security fixes are obtained asap.
- schedule rebuild images without caching for latest security updates
2022-02-28 13:20:54 +00:00

20 lines
550 B
JavaScript

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