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/export.js
2024-11-11 10:50:20 +00:00

19 lines
413 B
JavaScript

export default (client) => {
return {
export(tableId, values) {
return client.post(`/database/export/table/${tableId}/`, {
...values,
})
},
exportWorkspace(workspaceId, values) {
return client.post(
`/database/export/workspace/${workspaceId}/async/`,
values
)
},
get(jobId) {
return client.get(`/database/export/${jobId}/`)
},
}
}