mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-20 06:08:35 +02:00
Cleanup
This commit is contained in:
@@ -3,17 +3,14 @@ import repository from './repository'
|
||||
const resource = 'accounts'
|
||||
|
||||
export default {
|
||||
getAll({ domain, role }) {
|
||||
getAll(params) {
|
||||
return repository.get(`/${resource}/`, {
|
||||
params: { domain, role },
|
||||
params,
|
||||
paramsSerializer: {
|
||||
indexes: null,
|
||||
},
|
||||
})
|
||||
},
|
||||
getAllParams(params) {
|
||||
return repository.get(`${resource}/`, { params })
|
||||
},
|
||||
get(accountId) {
|
||||
return repository.get(`${resource}/${accountId}/`)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user