diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-09-01 09:19:04 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-09-01 09:19:04 +0300 |
commit | 32a5805a89e7ebb88d2f0aa66b7fd80749195121 (patch) | |
tree | 31800b159b87f045ade517440b5e695ea8ddc3cd /api/routes/default/index.js | |
parent | ad861504709c639ccc472f71b7db1fe7f52035d8 (diff) | |
download | arching-kaos-tools-32a5805a89e7ebb88d2f0aa66b7fd80749195121.tar.gz arching-kaos-tools-32a5805a89e7ebb88d2f0aa66b7fd80749195121.tar.bz2 arching-kaos-tools-32a5805a89e7ebb88d2f0aa66b7fd80749195121.zip |
Added new routes, fixed indentation
Diffstat (limited to 'api/routes/default/index.js')
-rw-r--r-- | api/routes/default/index.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/api/routes/default/index.js b/api/routes/default/index.js index e9be5cb..637674a 100644 --- a/api/routes/default/index.js +++ b/api/routes/default/index.js @@ -4,17 +4,19 @@ module.exports = (req, res) => { message:"Hello! Welcome to Arching Kaos API! See available routes below!", routes:{ GET:[ - {welcome:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+"/"}, - {node_local_chain:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/chain"}, - {node_local_zlatest:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/zlatest"}, - {gathered_zblocks:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/see"}, - {gathered_zchain_zlatest_pairs:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/seens"}, - {latest_known_mined_block:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/slatest"}, - {show_mined_block:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/sblock"} + {welcome:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+"/"}, + {gathered_zblocks:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/see"}, + {gathered_zchain_zlatest_pairs:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/seens"}, + {node_local_chain:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/chain"}, + {node_local_zlatest:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/zlatest"}, + {latest_known_mined_block:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/slatest"}, + {show_mined_block:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/sblock"}, + {getMerkleTree:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/mrk/:mkr"}, + {show_mined_block:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/sblock"} ], POST:[ - {send_me_a_zchain_link:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/szch"}, - {send_me_a_zblock:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/sblk"}, + {send_me_a_zchain_link:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/szch"}, + {send_me_a_zblock:settings.DEF_PROTO+settings.LOCAL_IP+":"+settings.PORT+settings.URL_PREFIX+"/sblk"}, ] } }); |