1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

add bulk users

This commit is contained in:
sauls8t 2018-03-01 10:58:55 +00:00
parent 7e6d6366da
commit 0b5ed8fd9e
11 changed files with 627 additions and 410 deletions

View file

@ -31,6 +31,16 @@ export default Service.extend({
});
},
// Adds comma-delim list of users (firstname, lastname, email).
addBulk(list) {
return this.get('ajax').request(`users/import`, {
type: 'POST',
data: list,
contentType: 'text'
}).then(() => {
});
},
// Returns user model for specified user id.
getUser(userId) {
let url = `users/${userId}`;