diff options
Diffstat (limited to 'api/routes/getNodeInfo')
-rw-r--r-- | api/routes/getNodeInfo/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api/routes/getNodeInfo/index.js b/api/routes/getNodeInfo/index.js index 27006ae..b267749 100644 --- a/api/routes/getNodeInfo/index.js +++ b/api/routes/getNodeInfo/index.js @@ -1,6 +1,7 @@ const { spawn } = require('child_process'); -module.exports = (req, res) => { +function getNodeInfo(req, res) +{ const command = spawn("ak-config", ["--get-published"]); var buffer = ""; command.stdout.on("data", data => { @@ -22,3 +23,4 @@ module.exports = (req, res) => { console.log(`child process exited with code ${code}`); }); }; +module.exports = getNodeInfo; |