strapi/lib/index.js
2015-10-01 00:30:16 +02:00

30 lines
584 B
JavaScript
Executable File

'use strict';
/**
* Module dependencies
*/
// Local dependencies.
const Strapi = require('./server');
/**
* Instantiate and expose a Strapi singleton
* (maintains legacy support).
*/
module.exports = new Strapi();
/**
* Expose constructor for convenience/tests
*/
module.exports.Strapi = Strapi;
// To access the Strapi application constructor, do:
// var strapi = require('strapi').constructor;
// var newApp = new strapi();
//
// Or to get a factory method which generates new instances:
// var strapi = require('strapi/lib/server');
// var newApp = strapi();