mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-01-15 21:18:41 +00:00
13 lines
396 B
JavaScript
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/`)
|
|
},
|
|
}
|
|
}
|