send portBindings
This commit is contained in:
parent
4d94a95565
commit
2a708ab77c
@ -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')
|
var res = request.post(this._origin + '/api/v1/apps/install')
|
||||||
.query({ access_token: this._credentials.accessToken })
|
.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();
|
.end();
|
||||||
common.verifyResponse2xx(res, 'Cannot install app');
|
common.verifyResponse2xx(res, 'Cannot install app');
|
||||||
debug('App installed at %s'.green, location);
|
debug('App installed at %s'.green, location);
|
||||||
|
Loading…
Reference in New Issue
Block a user