aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-02-29 08:04:42 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-02-29 08:04:42 +0200
commit2e45e945cb7baa3131430c9c069f9ba9d4ee77b9 (patch)
tree2ad38ad6a89a61083965e3e07b3db0f4a6d51f05
parent0960d34248a5af0df4a735e9a66476192ef1c971 (diff)
downloadarching-kaos-tools-2e45e945cb7baa3131430c9c069f9ba9d4ee77b9.tar.gz
arching-kaos-tools-2e45e945cb7baa3131430c9c069f9ba9d4ee77b9.tar.bz2
arching-kaos-tools-2e45e945cb7baa3131430c9c069f9ba9d4ee77b9.zip
Refactoring
-rw-r--r--api/routes/getNodeInfo/index.js (renamed from api/routes/getAkid/index.js)0
-rw-r--r--api/routes/index.js4
2 files changed, 2 insertions, 2 deletions
diff --git a/api/routes/getAkid/index.js b/api/routes/getNodeInfo/index.js
index 34426e5..34426e5 100644
--- a/api/routes/getAkid/index.js
+++ b/api/routes/getNodeInfo/index.js
diff --git a/api/routes/index.js b/api/routes/index.js
index 174ed66..cb3c584 100644
--- a/api/routes/index.js
+++ b/api/routes/index.js
@@ -13,7 +13,7 @@ const receiveZChain = require('./receiveZChain');
const getZblock = require('./getZblock');
const getMrk = require('./getMrk');
const getTr = require('./getTr');
-const getAkid = require('./getAkid');
+const getNodeInfo = require('./getNodeInfo');
const getPeers = require('./getPeers');
const getInnerIPFSContent = require('./getInnerIPFSContent');
const corsOptions = {
@@ -41,7 +41,7 @@ router.route(settings.URL_PREFIX+'/zchain').get(getZChain);
// Returns latest zblock from node's local chain
router.route(settings.URL_PREFIX+'/zlatest').get(getZLatest);
// Returns local node's info
-router.route(settings.URL_PREFIX+'/node_info').get(getAkid);
+router.route(settings.URL_PREFIX+'/node_info').get(getNodeInfo);
// Returns local node's peers
router.route(settings.URL_PREFIX+'/peers').get(getPeers);
// Returns content