feat: added randomly generated URLs
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Jef Roosens 2022-11-21 12:03:16 +01:00
parent 94f7400169
commit 51fc2867a8
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 190 additions and 87 deletions

View file

@ -6,10 +6,9 @@ URL=http://localhost:18080
if [ "$1" = add ]; then
curl \
-XPOST \
-d "$3" \
-d "$2" \
-H "X-Api-Key: $API_KEY" \
"$URL/$2"
echo "$URL/$2"
"$URL/$3"
elif [ "$1" = get ]; then
curl -is "$URL/$2" | grep -Po '(?<=location: ).*'