1
0
James Ketrenos 0bc96d5121 Added WebSocket for responses
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
2022-02-28 13:11:27 -08:00

22 lines
457 B
Bash
Executable File

#!/bin/bash
ADMIN=$(jq -r .admin config/local.json)
if [[ "${ADMIN}" == "" ]]; then
echo "You need to set your { 'admin': 'secret' } in config/local.json"
exit 1
fi
id=$1
if [[ "${id}" == "" ]]; then
echo "Usage: pass GAME-ID"
exit 1
fi
curl --noproxy '*' -s -L \
--request PUT \
--header "PRIVATE-TOKEN: ${ADMIN}" \
--header "Content-Type: application/json" \
http://localhost:8930/ketr.ketran/api/v1/games/${id}/pass |
jq -r .status