From 67450601ebcbf4cd31d316e9e9a8a339a0719766 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 3 Aug 2023 10:43:32 +0300 Subject: Changed to get params instead of query --- 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 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) -- cgit v1.2.3