lib/pancakes.js
function init(opts) {
    opts = opts || {};

    // include pancakes instance into options that we pass to plugins
    opts.pluginOptions = opts.pluginOptions || {};
    opts.pluginOptions.pancakes = exports;

    injector = new DependencyInjector(opts);
    var ClientPlugin = opts.clientPlugin;
    var ServerPlugin = opts.serverPlugin;

    if (ClientPlugin) { clientPlugin = new ClientPlugin(opts); }
    if (ServerPlugin) { serverPlugin = new ServerPlugin(opts); }

    apiRouteHandler.init({ injector: injector });
    webRouteHandler.init({ injector: injector, clientPlugin: clientPlugin, rootDir: opts.rootDir });
}
function init(opts) {
    opts = opts || {};

    // include pancakes instance into options that we pass to plugins
    opts.pluginOptions = opts.pluginOptions || {};
    opts.pluginOptions.pancakes = exports;

    injector = new DependencyInjector(opts);
    var ClientPlugin = opts.clientPlugin;
    var ServerPlugin = opts.serverPlugin;

    if (ClientPlugin) { clientPlugin = new ClientPlugin(opts); }
    if (ServerPlugin) { serverPlugin = new ServerPlugin(opts); }

    apiRouteHandler.init({ injector: injector });
    webRouteHandler.init({ injector: injector, clientPlugin: clientPlugin, rootDir: opts.rootDir });
}
function init ( opts ) { opts = opts || { } ; // include pancakes instance into options that we pass to plugins opts . pluginOptions = opts . pluginOptions || { } ; opts . pluginOptions . pancakes = exports ; injector = new DependencyInjector ( opts ) ; var ClientPlugin = opts . clientPlugin ; var ServerPlugin = opts . serverPlugin ; if ( ClientPlugin ) { clientPlugin = new ClientPlugin ( opts ) ; } if ( ServerPlugin ) { serverPlugin = new ServerPlugin ( opts ) ; } apiRouteHandler . init ( { injector : injector } ) ; webRouteHandler . init ( { injector : injector , clientPlugin : clientPlugin , rootDir : opts . rootDir } ) ; }
For now this is just a passthrough to the injector's init function
@param opts
For now this is just a passthrough to the injector s init function