1
0
kopia lustrzana https://github.com/therootcompany/telebit.git synced 2025-07-06 20:36:36 +00:00
telebit/mplexer/mgmt-active.sh
2020-06-01 02:48:05 -06:00

9 wiersze
258 B
Bash

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