Use the new listuser endpoint to search for users
This commit is contained in:
parent
13d06769cf
commit
52bce0b9f1
2 changed files with 19 additions and 5 deletions
14
src/services/listUsers.js
Normal file
14
src/services/listUsers.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import AbstractService from './abstractService'
|
||||
import UserModel from '../models/user'
|
||||
|
||||
export default class ListUserService extends AbstractService {
|
||||
constructor() {
|
||||
super({
|
||||
getAll: '/lists/{listID}/listusers'
|
||||
})
|
||||
}
|
||||
|
||||
modelFactory(data) {
|
||||
return new UserModel(data)
|
||||
}
|
||||
}
|
||||
Reference in a new issue