mirror of
https://github.com/strapi/strapi.git
synced 2025-12-04 11:02:12 +00:00
18 lines
343 B
JavaScript
Executable File
18 lines
343 B
JavaScript
Executable File
'use strict';
|
|
|
|
// Starting date
|
|
global.startedAt = Date.now();
|
|
|
|
/**
|
|
* Instantiate and expose a Strapi singleton
|
|
* (maintains legacy support).
|
|
*/
|
|
|
|
module.exports = function(global) {
|
|
try {
|
|
return global.strapi = require('./Strapi'); // Strapi instance instanciated
|
|
} catch (error) {
|
|
console.log(error);
|
|
}
|
|
}.call(this, global);
|