From 5a46603deb80cdbff0aef265febe40a83916357e Mon Sep 17 00:00:00 2001 From: JP Appel Date: Wed, 25 Oct 2023 13:45:59 -0400 Subject: changed files to allow local test --- send_game | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'send_game') diff --git a/send_game b/send_game index bb758ab..148d699 100755 --- a/send_game +++ b/send_game @@ -1,6 +1,12 @@ #!/bin/bash -jq . "$1" | curl "https://jpappel.xyz/toggle/query" \ +endpoint="/query" +URL="https://jpappel.xyz/toggle$endpoint" +[ "$2" == "localhost" ] && + URL="localhost:9090$endpoint" + +jq . "$1" | curl -s "$URL" \ --header "Content-Type: application/json" \ --request POST \ - -d @- + -d @- | + jq . -- cgit v1.2.3