From 0fd522a6e324de08a99bdd42ead193acff6f3d15 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 5 Apr 2024 14:23:22 +0300 Subject: various fixes, surely still broken in places --- api/routes/getNodeInfo/index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'api/routes/getNodeInfo/index.js') 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"]); -- cgit v1.2.3