1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/core/services/snapshots.js

17 lines
450 B
JavaScript

export default (client) => {
return {
list(applicationId) {
return client.get(`/snapshots/application/${applicationId}/`)
},
create(applicationId, values) {
return client.post(`/snapshots/application/${applicationId}/`, values)
},
restore(snapshotId) {
return client.post(`/snapshots/${snapshotId}/restore/`)
},
delete(snapshotId) {
return client.delete(`/snapshots/${snapshotId}/`)
},
}
}