1
This commit is contained in:
parent
be7d128a8d
commit
a0d31531c1
10
app.js
10
app.js
@ -135,6 +135,14 @@ function addStaticDirectory(path, dir) {
|
||||
app.use(path, express.static(dir));
|
||||
}
|
||||
|
||||
function getNodeId() {
|
||||
return Number(utils.getArgv('n'));
|
||||
}
|
||||
|
||||
function getInstanceId() {
|
||||
return Number(utils.getArgv('i'));
|
||||
}
|
||||
|
||||
registerHandler('Ops', 'selfChecking', async (req, rsp) => {
|
||||
if (rsp) {
|
||||
utils.rspOk(rsp);
|
||||
@ -157,3 +165,5 @@ exports.useMiddleware = useMiddleware;
|
||||
exports.registerDb = registerDb;
|
||||
exports.getDbConn = getDbConn;
|
||||
exports.addStaticDirectory = addStaticDirectory;
|
||||
exports.getNodeId = getNodeId;
|
||||
exports.getInstanceId = getInstanceId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user