Add very simple add-only persistence model
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Jef Roosens 2022-11-15 22:49:36 +01:00
parent 919976073f
commit 9c3af74e1b
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 89 additions and 1 deletions

13
landerctl Executable file
View file

@ -0,0 +1,13 @@
#!/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