mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +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}/`)
|
|
},
|
|
}
|
|
}
|