fix alias api usage
This commit is contained in:
parent
403de89eae
commit
a4bdeb9cde
@ -354,7 +354,7 @@ Cloudron.prototype.addUser = function (username, email) {
|
||||
};
|
||||
|
||||
Cloudron.prototype.setAliases = function (owner, aliases) {
|
||||
var res = request.put(this._origin + '/api/v1/mailboxes/' + owner.username + '/aliases')
|
||||
var res = request.put(this._origin + '/api/v1/users/' + owner.id + '/aliases')
|
||||
.query({ access_token: this._credentials.accessToken })
|
||||
.send({ aliases: aliases })
|
||||
.end();
|
||||
|
Loading…
Reference in New Issue
Block a user