mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
23 lines
554 B
JavaScript
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/`)
|
|
},
|
|
}
|
|
}
|