mirror of
https://github.com/therootcompany/telebit.git
synced 2025-02-13 08:28:13 +00:00
9 lines
258 B
Bash
9 lines
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}"
|