1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-14 00:59:06 +00:00
bramw_baserow/web-frontend/services/application.js

19 lines
518 B
JavaScript

import { client } from './client'
export default {
fetchAll(groupId) {
return client.get(`/applications/group/${groupId}/`)
},
create(groupId, values) {
return client.post(`/applications/group/${groupId}/`, values)
},
get(applicationId) {
return client.get(`/applications/${applicationId}/`)
},
update(applicationId, values) {
return client.patch(`/applications/${applicationId}/`, values)
},
delete(applicationId) {
return client.delete(`/applications/${applicationId}/`)
}
}