mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-02 08:00:03 +00:00
17 lines
390 B
JavaScript
17 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}/`)
|
||
|
},
|
||
|
}
|
||
|
}
|