blob: 148d699fa22146bb755550d443f2bb6754f8e73c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
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 @- |
jq .
|