feat: added randomly generated URLs
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
94f7400169
commit
51fc2867a8
6 changed files with 190 additions and 87 deletions
|
|
@ -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: ).*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue