diff --git a/lib/cylon.js b/lib/cylon.js index b5cbe0d..ac2a680 100644 --- a/lib/cylon.js +++ b/lib/cylon.js @@ -85,8 +85,6 @@ Cylon.api = function api(Server, opts) { if (_.isString(Server)) { var req = "cylon-api-" + Server; - opts.name = Server; - try { Server = require(req); } catch (e) { @@ -116,7 +114,7 @@ Cylon.api = function api(Server, opts) { opts.mcp = this; var instance = new Server(opts); this.apiInstances.push(instance); - instance.listen(); + instance.start(); }; // Public: Starts up the API and the robots