mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-28 22:42:26 +00:00
16 lines
390 B
JavaScript
16 lines
390 B
JavaScript
export default (client) => {
|
|
return {
|
|
fetchAll() {
|
|
return client.get('/mcp/endpoints/')
|
|
},
|
|
create(values) {
|
|
return client.post('/mcp/endpoints/', values)
|
|
},
|
|
update(endpointId, values) {
|
|
return client.patch(`/mcp/endpoint/${endpointId}/`, values)
|
|
},
|
|
delete(endpointId) {
|
|
return client.delete(`/mcp/endpoint/${endpointId}/`)
|
|
},
|
|
}
|
|
}
|