diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-31 13:54:51 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-31 13:54:51 +0300 |
commit | 25cabe789a20e39e666dc56348cb32d0d1714dbd (patch) | |
tree | 2083ea8a31ab9753043e31b860498f41e5d066bc | |
parent | e4f18be94261b39544ef3bc50321f6aedeb45bd6 (diff) | |
download | arching-kaos-tools-25cabe789a20e39e666dc56348cb32d0d1714dbd.tar.gz arching-kaos-tools-25cabe789a20e39e666dc56348cb32d0d1714dbd.tar.bz2 arching-kaos-tools-25cabe789a20e39e666dc56348cb32d0d1714dbd.zip |
yeap, broke api for starters
-rwxr-xr-x | api/index.js | 4 | ||||
-rw-r--r-- | api/routes/getNodeInfo/index.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/api/index.js b/api/index.js index 5fefe9f..76431eb 100755 --- a/api/index.js +++ b/api/index.js @@ -7,12 +7,12 @@ */ const config = require('./config'); -const akLogThis = require('./lib/akLogThis'); +const akLogMessage = require('./lib/akLogMessage'); const DEFAULT_PORT = 8610; const PORT = config.port || DEFAULT_PORT; -akLogThis("INFO", "Daemon started") +akLogMessage("INFO", "Daemon started") /* * Split the prefix of each API call in segments for better management * diff --git a/api/routes/getNodeInfo/index.js b/api/routes/getNodeInfo/index.js index b0a91cd..bd2c733 100644 --- a/api/routes/getNodeInfo/index.js +++ b/api/routes/getNodeInfo/index.js @@ -1,5 +1,5 @@ const { spawn } = require('child_process'); -const akLogThis = require('../../lib/akLogThis'); +const akLogMessage = require('../../lib/akLogMessage'); /* * Gets the local latest zblock * @@ -9,7 +9,7 @@ const akLogThis = require('../../lib/akLogThis'); * */ module.exports = (req, res) => { - akLogThis('INFO', `Incoming from [${req.socket._peername.address}]:${req.socket._peername.port} @ ${req.get('host')}${req._parsedOriginalUrl.pathname}`); + 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"]); var buffer = ""; command.stdout.on("data", data => { |