From 436aa41025a512553b09cb9a8e9286f56c8ef0c8 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 30 Aug 2015 21:49:09 -0700 Subject: [PATCH] send access token --- cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index 4c546fd..957395e 100644 --- a/cloudron.js +++ b/cloudron.js @@ -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(); };