send access token for listing app backups

This commit is contained in:
Girish Ramakrishnan 2016-06-14 09:22:21 -07:00
parent 3e51cc8d32
commit 06e95c460a

View File

@ -284,7 +284,7 @@ Cloudron.prototype.restoreApp = function (appId, backup) {
};
Cloudron.prototype.listAppBackups = function (appId) {
var res = request.get(this._origin + '/api/v1/apps/' + appId + '/backups').end();
var res = request.get(this._origin + '/api/v1/apps/' + appId + '/backups').query({ access_token: this._credentials.accessToken }).end();
common.verifyResponse2xx(res, 'Could not list backups');
return res.body.backups;
};