diff --git a/lib/cylon.js b/lib/cylon.js index 33c9636..03b0105 100644 --- a/lib/cylon.js +++ b/lib/cylon.js @@ -60,7 +60,11 @@ Cylon.robot = function robot(opts) { // Public: Creates a new API based on passed options // // Returns nothing -Cylon.api = function api() { +Cylon.api = function api(opts) { + if (typeof opts === 'object') { + this.config({ api: opts }); + } + var API = require('./api'); var config = Utils.fetch(Config, 'api', {});