From 57d4239027674e89fb5dc3e352c00805dc38e372 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sat, 2 Mar 2019 02:05:18 -0600 Subject: [PATCH] Tweak cURL-based API client. --- api/src/util/bash/client.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/util/bash/client.sh b/api/src/util/bash/client.sh index b3dab9b..1347da1 100755 --- a/api/src/util/bash/client.sh +++ b/api/src/util/bash/client.sh @@ -1,6 +1,6 @@ #!/bin/bash -host="${PM_API_HOST:-localhost:8080}" +host="${PM_API_HOST:-localhost:8081}" if [ $# -eq 1 ]; then url="$1" method="GET" @@ -19,4 +19,4 @@ curl -s -X "$method" \ -H "Content-Type: application/json" \ -H "Authorization: $(cat credential)"\ "http://${host}/api/$url" \ - -d "$data" | jq . + -d "$data"