1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-02 08:00:03 +00:00
bramw_baserow/web-frontend/modules/core/services/mcpEndpoint.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
390 B
JavaScript
Raw Normal View History

2025-04-25 13:47:58 +00:00
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}/`)
},
}
}