1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-28 22:42:26 +00:00
bramw_baserow/web-frontend/modules/core/services/mcpEndpoint.js
2025-04-25 13:47:58 +00:00

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