1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/enterprise/web-frontend/modules/baserow_enterprise/services/authProviderAdmin.js
2022-11-01 08:57:55 +00:00

23 lines
554 B
JavaScript

export default (client) => {
return {
fetchAll() {
return client.get('/admin/auth-provider/')
},
fetch(id) {
return client.get(`/admin/auth-provider/${id}/`)
},
create(values) {
return client.post('/admin/auth-provider/', values)
},
update(id, values) {
return client.patch(`/admin/auth-provider/${id}/`, values)
},
delete(id) {
return client.delete(`/admin/auth-provider/${id}/`)
},
fetchNextProviderId() {
return client.get(`/admin/auth-provider/next-id/`)
},
}
}