send portBindings

This commit is contained in:
Girish Ramakrishnan 2016-05-05 15:03:17 -07:00
parent 4d94a95565
commit 2a708ab77c
1 changed files with 4 additions and 2 deletions

View File

@ -161,10 +161,12 @@ Cloudron.prototype.setCredentials = function (password, accessToken) {
};
};
Cloudron.prototype.installApp = function (location, manifest) {
Cloudron.prototype.installApp = function (location, manifest, portBindings) {
portBindings = portBindings || null; // null binds nothing
var res = request.post(this._origin + '/api/v1/apps/install')
.query({ access_token: this._credentials.accessToken })
.send({ manifest: manifest, appStoreId: '', location: location, accessRestriction: null, oauthProxy: false })
.send({ manifest: manifest, appStoreId: '', location: location, accessRestriction: null, oauthProxy: false, portBindings: null })
.end();
common.verifyResponse2xx(res, 'Cannot install app');
debug('App installed at %s'.green, location);