telebit/mplexer/mgmt-active.sh

9 lines
258 B
Bash
Raw Normal View History

TOKEN=$(go run cmd/signjwt/*.go)
echo "TOKEN: $TOKEN"
2020-06-01 08:48:05 +00:00
echo "Active:"
curl -L http://localhost:3000/api/devices -H "Authorization: Bearer ${TOKEN}"
2020-06-01 08:48:05 +00:00
echo "Inactive:"
curl -L http://localhost:3000/api/devices?inactive=true -H "Authorization: Bearer ${TOKEN}"