mirror of
https://github.com/strapi/strapi.git
synced 2025-07-26 18:38:46 +00:00
30 lines
584 B
JavaScript
30 lines
584 B
JavaScript
![]() |
'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();
|