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:
parent
7e6d6366da
commit
0b5ed8fd9e
11 changed files with 627 additions and 410 deletions
|
@ -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}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue