2020-06-01 08:39:35 +00:00
|
|
|
TOKEN=$(go run cmd/signjwt/*.go)
|
|
|
|
echo "TOKEN: $TOKEN"
|
|
|
|
|
2020-06-01 08:48:05 +00:00
|
|
|
echo "Active:"
|
2020-06-01 08:39:35 +00:00
|
|
|
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}"
|