ee-soa-service-manager
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -24,2 +24,20 @@ | ||
/** | ||
* returns a map of all controllers | ||
*/ | ||
, getControllerMap: function(map) { | ||
Object.keys(this._controllerList).forEach(function(serviceName) { | ||
this._controllerList[serviceName].getControllerMap(map); | ||
}.bind(this)); | ||
return map; | ||
} | ||
, _hasController: function(controllerName) { | ||
@@ -43,7 +61,7 @@ return Object.hasOwnProperty.call(this._controllerList, controllerName); | ||
this._controllerList[collection].request(req, res); | ||
} | ||
} | ||
else { | ||
if(debug) log(collection + " not managed by serviceManager"); | ||
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: collection + " not managed by serviceManager"}); | ||
} | ||
} | ||
} | ||
@@ -50,0 +68,0 @@ |
{ | ||
"name" : "ee-soa-service-manager" | ||
, "description" : "Service Manager for the ee-soa framework" | ||
, "version" : "0.1.8" | ||
, "version" : "0.1.9" | ||
, "author" : "Tobias Kneubühler <tobias@joinbox.com> (http://joinbox.com/)" | ||
@@ -6,0 +6,0 @@ , "contributors": [ |
9322
104