-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.js
35 lines (30 loc) · 1005 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
'use strict';
require("./classes/http");
const coreModules = require("soajs.core.modules");
const coreLibs = require("soajs.core.libs");
//NOTE: backward compatibility for multitenant
const registryModule = require("./modules/registry");
coreModules.core.registry = registryModule;
process.on('uncaughtException', (e) => {
console.log(new Date().toISOString(), e.stack || e);
process.exit(1);
});
/**
*
* @type {{mw: {soajs: exports, response: exports, rm: exports, inputmask: exports}, restServer: (service|exports), rmServer: (controller|exports)}}
*/
module.exports = {
"server": {
"service": require("./servers/service.js"),
"daemon": require("./servers/daemon.js")
},
"extractAPIsList": require("./utilities/utils.js").extractAPIsList,
"es": coreModules.es,
"mail": coreModules.mail,
"mongo": coreModules.mongo,
"hasher": coreModules.hasher,
"core": coreModules.core,
"authorization": coreModules.authorization,
"provision": coreModules.provision,
"utils": coreLibs.utils
};