10 lines
196 B
Bash
Executable File
10 lines
196 B
Bash
Executable File
|
|
if [ -z ${1+x} ]; then
|
|
read msg
|
|
else
|
|
msg="$1"
|
|
fi
|
|
|
|
curl localhost:12345/add -d "{\"content\": \"$msg\", \"Secret\": \"asdf\", \"author\": \"kageru\"}" -H "Content-Type: application/json"
|
|
|