diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-07 03:29:33 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-07 03:29:33 +0200 |
commit | 61e46fdc08170e0c630ff9983b87fde6890e3caf (patch) | |
tree | bcf762db121728b2d37d7545729c34da99b2cc24 /api/index.js | |
parent | 237a32846ad4a8f8634a68f0a92c71c49807de26 (diff) | |
download | arching-kaos-tools-61e46fdc08170e0c630ff9983b87fde6890e3caf.tar.gz arching-kaos-tools-61e46fdc08170e0c630ff9983b87fde6890e3caf.tar.bz2 arching-kaos-tools-61e46fdc08170e0c630ff9983b87fde6890e3caf.zip |
New routes and fixes
Diffstat (limited to 'api/index.js')
-rwxr-xr-x | api/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/api/index.js b/api/index.js index d1a18a6..2646a9c 100755 --- a/api/index.js +++ b/api/index.js @@ -3,13 +3,15 @@ const http = require("node:http"); const welcomeMessage = require("./routes/default/index.js"); const getNodeInfo = require('./routes/getNodeInfo/index.js'); const getPeers = require('./routes/getPeers/index.js'); -const getZblock = require('./routes/getZblock/index.js'); +const getIPFSHash = require('./routes/getIPFSHash/index.js'); const getZlatest = require('./routes/getZLatest/index.js'); const getSblock = require('./routes/getSBlock/index.js'); const getChunk = require('./routes/getChunk/index.js'); const getLeaf = require('./routes/getLeaf/index.js'); const getMap = require('./routes/getMap/index.js'); const getSlatest = require('./routes/getSLatest/index.js'); +const getRemoteNodeInfo = require('./routes/getRemoteNodeInfo/index.js'); +const getRemotePeers = require('./routes/getRemotePeers/index.js'); const akLogMessage = require('./lib/akLogMessage'); @@ -51,13 +53,15 @@ function getRoutes(req, res) case 'root': testRootRoute(req, res); break; case 'peers': getPeers(req, res); break; case 'node_info': getNodeInfo(req, res); break; - case 'zblock': getZblock(req, res); break; + case 'ipfs_hash': getIPFSHash(req, res); break; case 'zlatest': getZlatest(req, res); break; case 'sblock': getSblock(req, res); break; case 'slatest': getSlatest(req, res); break; case 'chunk': getChunk(req, res); break; case 'leaf': getLeaf(req, res); break; case 'map': getMap(req, res); break; + case 'remote_node_info': getRemoteNodeInfo(req, res); break; + case 'remote_peers': getRemotePeers(req, res); break; default: notImplemented(req, res); } } |