1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-02-06 22:00:09 +00:00
bramw_baserow/web-frontend/modules/core/services/snapshots.js

16 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}/`)
},
}
}