feat(lander): introduce file entry type

This commit is contained in:
Jef Roosens 2023-11-12 13:57:11 +01:00
parent 3d48ee8019
commit 7fac278ead
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 93 additions and 33 deletions

View file

@ -38,4 +38,12 @@ elif [ "$1" = pl ]; then
-H "X-Api-Key: $API_KEY" \
--data-binary @"$2" \
"$URL/pl/$3"
elif [ "$1" = f ]; then
curl \
-w "${URL}%header{location}" \
-XPOST \
-H "X-Api-Key: $API_KEY" \
--data-binary @"$2" \
"$URL/f/$3"
fi