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