mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
14 lines
396 B
JavaScript
14 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/`)
|
|
},
|
|
}
|
|
}
|