New helloworld endpoint useful when diagnosing

This commit is contained in:
kexkey
2019-08-06 19:05:49 -04:00
committed by kexkey
parent b43d6a273e
commit 2d126c473b
4 changed files with 9 additions and 2 deletions

View File

@@ -72,6 +72,11 @@ main()
trace "[main] line=${line}"
fi
case "${cmd}" in
helloworld)
# GET http://192.168.111.152:8080/helloworld
response_to_client "Hello, world!" 0
break
;;
installation_info)
# GET http://192.168.111.152:8080/info
if [ -f "$DB_PATH/info.json" ]; then
@@ -286,7 +291,7 @@ main()
;;
getmempoolinfo)
# curl GET http://192.168.111.152:8080/getmempoolinfo
response=$(get_mempool_info)
response_to_client "${response}" ${?}
break