Use the new listuser endpoint to search for users

This commit is contained in:
kolaente 2019-07-22 13:27:20 +02:00
parent 13d06769cf
commit 52bce0b9f1
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
2 changed files with 19 additions and 5 deletions

14
src/services/listUsers.js Normal file
View 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)
}
}