From 2e45e945cb7baa3131430c9c069f9ba9d4ee77b9 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 29 Feb 2024 08:04:42 +0200 Subject: Refactoring --- api/routes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/routes/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 -- cgit v1.2.3