lander/landerctl

14 lines
205 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
API_KEY=test
URL=http://localhost:18080
if [ "$1" = add ]; then
curl \
-XPOST \
-d "$3" \
-H "X-Api-Key: $API_KEY" \
"$URL/$2"
echo "$URL/$2"
fi