send access token

This commit is contained in:
Girish Ramakrishnan 2015-08-30 21:49:09 -07:00
parent 92fc9fbd40
commit 436aa41025
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ Cloudron.prototype.backup = function () {
};
Cloudron.prototype.reboot = function () {
var res = request.post(this._origin + '/api/v1/cloudron/reboot').send({ }).end();
var res = request.post(this._origin + '/api/v1/cloudron/reboot').query({ access_token: this._credentials.accessToken }).send({ }).end();
verifyResponse(res, 'Box could not be rebooted');
this.waitForBox();
};