feat: add route for adding pastes
This commit is contained in:
parent
a22a2e5cfa
commit
7f42d540b5
4 changed files with 51 additions and 14 deletions
|
|
@ -12,4 +12,7 @@ if [ "$1" = add ]; then
|
|||
|
||||
elif [ "$1" = get ]; then
|
||||
curl -is "$URL/$2" | sed -En 's/^[lL]ocation: (.*)/\1/p'
|
||||
|
||||
elif [ "$1" = paste ]; then
|
||||
curl -v --data-binary @"$2" -XPOST -H "X-Api-Key: $API_KEY" "$URL/p/"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue