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/decoration.js
2022-04-26 09:37:37 +00:00

23 lines
633 B
JavaScript

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