UNPKG

@openveo/core

Version:
14 lines (10 loc) 308 B
'use strict'; var path = require('path'); var api = require('./app/server/api.js'); // Set module root directory and define a custom require function process.root = __dirname; process.require = function(filePath) { return require(path.join(process.root, filePath)); }; // Expose APIs process.api = api;