cde-toolbelt
Advanced tools
Comparing version 1.0.26 to 1.0.27
@@ -68,3 +68,4 @@ var request = require('request'); | ||
console.info('\tRegistering interface %s.%s on port %s', interface, this._service, this._host, this._port); | ||
request({ | ||
var obj = { | ||
uri: this.getRouterUrl() + '/api/service', | ||
@@ -75,4 +76,12 @@ method: 'PUT', | ||
}, | ||
body: 'service=' + interface + '.' + this._service + '&host=' + this._host + '&port=' + this._port | ||
}, function (err, resp) { | ||
body: null | ||
} | ||
if (this._mode && this._mode == 'manual') { | ||
obj.body = 'service=' + this._service + '&host=' + this._host + '&port=' + this._port; | ||
} else { | ||
obj.body = 'service=' + interface + '.' + this._service + '&host=' + this._host + '&port=' + this._port; | ||
} | ||
request(obj, function (err, resp) { | ||
if (err) { | ||
@@ -79,0 +88,0 @@ return callback('Router error: ' + err); |
{ | ||
"name": "cde-toolbelt", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "colors": { |
{ | ||
"name": "cde-toolbelt", | ||
"description": "Project starter for CDE apps", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Kamil Rokosz <lax@lax.net.pl>", |
52397
1289