1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-01-15 21:18:41 +00:00
bramw_baserow/web-frontend/modules/dashboard/services/dataSource.js
2024-12-25 08:40:24 +00:00

13 lines
396 B
JavaScript

export default (client) => {
return {
getAllDataSources(dashboardId) {
return client.get(`/dashboard/${dashboardId}/data-sources/`)
},
update(dataSourceId, values = {}) {
return client.patch(`/dashboard/data-sources/${dataSourceId}/`, values)
},
dispatch(dataSourceId) {
return client.post(`/dashboard/data-sources/${dataSourceId}/dispatch/`)
},
}
}