aboutsummaryrefslogtreecommitdiff
path: root/api/routes/index.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-03 10:43:32 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-03 10:43:32 +0300
commit67450601ebcbf4cd31d316e9e9a8a339a0719766 (patch)
tree2e95802f46c87bd522898f3f8dd5094366d6a348 /api/routes/index.js
parenteb83dc73c0f71b2cf3480b17658ef7f21e92e570 (diff)
downloadarching-kaos-tools-67450601ebcbf4cd31d316e9e9a8a339a0719766.tar.gz
arching-kaos-tools-67450601ebcbf4cd31d316e9e9a8a339a0719766.tar.bz2
arching-kaos-tools-67450601ebcbf4cd31d316e9e9a8a339a0719766.zip
Changed to get params instead of query
Diffstat (limited to 'api/routes/index.js')
-rw-r--r--api/routes/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/routes/index.js b/api/routes/index.js
index c019967..e697be7 100644
--- a/api/routes/index.js
+++ b/api/routes/index.js
@@ -32,7 +32,7 @@ router.route(settings.URL_PREFIX+'/see').get(seeEntriesFile);
// Latest known mined block
router.route(settings.URL_PREFIX+'/slatest').get(getSLatest);
// Shows a mined block (provided that /sblock?sblock=SHA512 hash)
-router.route(settings.URL_PREFIX+'/sblock').get(getSBlock);
+router.route(settings.URL_PREFIX+'/sblock/:sblock').get(getSBlock);
// Outputs node's local chain
router.route(settings.URL_PREFIX+'/zchain').get(getZChain);
// Returns latest zblock from node's local chain
@@ -42,7 +42,7 @@ router.route(settings.URL_PREFIX+'/akid').get(getAkid);
// Returns content
router.route(settings.URL_PREFIX+'/content').get(getInnerIPFSContent);
// Returns zblock
-router.route(settings.URL_PREFIX+'/zblock').get(getZblock);
+router.route(settings.URL_PREFIX+'/zblock/:zblock').get(getZblock);
// Send a block to the node (zchain block)
router.route(settings.URL_PREFIX+'/sblk').post(receiveZBlock);
// Send a zchain link to the node (refering to a valid zchain out there)