mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 08:48:35 +00:00
20 lines
545 B
JavaScript
20 lines
545 B
JavaScript
import { client } from '@baserow/modules/core/services/client'
|
|
|
|
export default {
|
|
fetchAll(databaseId) {
|
|
return client.get(`/database/tables/database/${databaseId}/`)
|
|
},
|
|
create(databaseId, values) {
|
|
return client.post(`/database/tables/database/${databaseId}/`, values)
|
|
},
|
|
get(tableId) {
|
|
return client.get(`/database/tables/${tableId}/`)
|
|
},
|
|
update(tableId, values) {
|
|
return client.patch(`/database/tables/${tableId}/`, values)
|
|
},
|
|
delete(tableId) {
|
|
return client.delete(`/database/tables/${tableId}/`)
|
|
},
|
|
}
|