diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-04-05 14:23:22 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-04-05 14:23:22 +0300 |
commit | 0fd522a6e324de08a99bdd42ead193acff6f3d15 (patch) | |
tree | 7f25b03bb1ed8aaaf73689a59fee42196381ea2d /api/routes/getNodeInfo/index.js | |
parent | 946d002543083d9561bb1e7f851b8179099ad077 (diff) | |
download | arching-kaos-tools-0fd522a6e324de08a99bdd42ead193acff6f3d15.tar.gz arching-kaos-tools-0fd522a6e324de08a99bdd42ead193acff6f3d15.tar.bz2 arching-kaos-tools-0fd522a6e324de08a99bdd42ead193acff6f3d15.zip |
various fixes, surely still broken in places
Diffstat (limited to 'api/routes/getNodeInfo/index.js')
-rw-r--r-- | api/routes/getNodeInfo/index.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/api/routes/getNodeInfo/index.js b/api/routes/getNodeInfo/index.js index bd2c733..d87a3e7 100644 --- a/api/routes/getNodeInfo/index.js +++ b/api/routes/getNodeInfo/index.js @@ -1,13 +1,6 @@ const { spawn } = require('child_process'); const akLogMessage = require('../../lib/akLogMessage'); -/* - * Gets the local latest zblock - * - * Returns: - * - JSON object - * { zlatest: "Qm..." } - * - */ + module.exports = (req, res) => { akLogMessage('INFO', `Incoming from [${req.socket._peername.address}]:${req.socket._peername.port} @ ${req.get('host')}${req._parsedOriginalUrl.pathname}`); const command = spawn("ak-config", ["get-published"]); |