aboutsummaryrefslogtreecommitdiffstats
path: root/test/endpoints.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-03-28 18:56:01 +0000
committerterminaldweller <thabogre@gmail.com>2022-03-28 18:56:01 +0000
commite24a591310bba9cb94b2ebdd1e41c184131ae1a8 (patch)
tree86552f7e2d9ad06dec69e71925731f5f7ed72aa7 /test/endpoints.sh
parenthalf-updateds the readme (diff)
downloadhived-e24a591310bba9cb94b2ebdd1e41c184131ae1a8.tar.gz
hived-e24a591310bba9cb94b2ebdd1e41c184131ae1a8.zip
added some security headers
Diffstat (limited to '')
-rwxr-xr-xtest/endpoints.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/endpoints.sh b/test/endpoints.sh
index 11282bb..6263136 100755
--- a/test/endpoints.sh
+++ b/test/endpoints.sh
@@ -2,10 +2,7 @@
set -e
set -x
-sleep 5
-curl -X GET http://localhost:8008/price?name=CAKE&unit=USD
-curl -X GET http://localhost:8008/pair?one=ETH&two=CAKE&multiplier=4.0
-curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://localhost:8008/alert
-# curl -X GET http://127.0.0.1:8008/price?name=CAKE&unit=USD
-# curl -X GET http://127.0.0.1:8008/pair?one=ETH&two=CAKE&multiplier=4.0
-# curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://127.0.0.1:8008/alert
+# sleep 5
+curl -k -X GET https://localhost:8008/crypto/price?name=CAKE&unit=USD
+curl -k -X GET https://localhost:8008/crypto/pair?one=ETH&two=CAKE&multiplier=4.0
+curl -k -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' https://localhost:8008/crypto/alert