mirror of
https://github.com/strapi/strapi.git
synced 2025-07-25 18:05:07 +00:00
30 lines
584 B
JavaScript
Executable File
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();
|