Add missing endpoints to cache warmer

This commit is contained in:
nymkappa 2022-03-30 19:52:06 +09:00
parent 796db0de4b
commit d70e183236
No known key found for this signature in database
GPG key ID: E155910B16E8BD04

View file

@ -36,6 +36,7 @@ do for url in / \
'/api/v1/mining/hashrate/pools/3y' \
'/api/v1/mining/hashrate/pools/all' \
'/api/v1/mining/reward-stats/144' \
'/api/v1/mining/blocks-extras' \
do
curl -s "https://${hostname}${url}" >/dev/null
@ -43,8 +44,9 @@ do for url in / \
for slug in $slugs
do
curl -s "https://${hostname}/api/v1/mining/pool/${slug}/hashrate" >/dev/null
curl -s "https://${hostname}/api/v1/mining/pool/${slug}" >/dev/null
curl -s "https://${hostname}/api/v1/mining/pool/${slug}/hashrate" >/dev/null
curl -s "https://${hostname}/api/v1/mining/pool/${slug}/blocks" >/dev/null
done
sleep 10