From 3d2842567bf31f95f84c79f8fdd8908fcc1c0a7a Mon Sep 17 00:00:00 2001 From: edgarsilva Date: Fri, 30 Jan 2015 14:45:50 -0600 Subject: [PATCH] User API#start instead of API#listen in cylon#api --- lib/cylon.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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