diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-11-20 11:15:45 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-11-20 11:15:45 +0200 |
commit | 4aa29c28f54704c3fdba9ba432916ad340447c61 (patch) | |
tree | 984b1380fa04b655abddd99230cc06549631c510 /api | |
parent | 3dab40bb8dcfb2c4fffaf4ea9827114f40a1ef03 (diff) | |
download | arching-kaos-tools-4aa29c28f54704c3fdba9ba432916ad340447c61.tar.gz arching-kaos-tools-4aa29c28f54704c3fdba9ba432916ad340447c61.tar.bz2 arching-kaos-tools-4aa29c28f54704c3fdba9ba432916ad340447c61.zip |
Updates for AKFS
- Changed old directories to comprehensible names
- Introduced relevant settings to the API
- install script now creates these directories
- AK_LEAFSDIR, AK_MAPSDIR, AK_CHUNKSDIR
Diffstat (limited to 'api')
-rw-r--r-- | api/config.js | 4 | ||||
-rwxr-xr-x | api/index.js | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/api/config.js b/api/config.js index 68b66f9..41eb9dd 100644 --- a/api/config.js +++ b/api/config.js @@ -20,7 +20,9 @@ const config = { peersFile : env.AK_ZPEERSFILE, cacheDir : env.AK_CACHEDIR, minedBlocksDir: env.AK_MINEDBLOCKSDIR, + chunksDir: env.AK_CHUNKSDIR, + leafsDir: env.AK_LEAFSDIR, + mapsDir: env.AK_MAPSDIR, printDebug: env.AK_DEBUG - } module.exports = config; diff --git a/api/index.js b/api/index.js index 943196a..d1a18a6 100755 --- a/api/index.js +++ b/api/index.js @@ -6,6 +6,9 @@ const getPeers = require('./routes/getPeers/index.js'); const getZblock = require('./routes/getZblock/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 akLogMessage = require('./lib/akLogMessage'); @@ -52,6 +55,9 @@ function getRoutes(req, res) 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; default: notImplemented(req, res); } } |