feat: create pastes directory; separate routes
This commit is contained in:
parent
f1ec643f80
commit
a22a2e5cfa
3 changed files with 18 additions and 5 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue