feat: create pastes directory; separate routes

This commit is contained in:
Jef Roosens 2022-11-21 15:45:31 +01:00
parent f1ec643f80
commit a22a2e5cfa
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
3 changed files with 18 additions and 5 deletions

View file

@ -8,7 +8,7 @@ if [ "$1" = add ]; then
-XPOST \
-d "$2" \
-H "X-Api-Key: $API_KEY" \
"$URL/$3"
"$URL/s/$3"
elif [ "$1" = get ]; then
curl -is "$URL/$2" | sed -En 's/^[lL]ocation: (.*)/\1/p'