renamed devel dir

This commit is contained in:
mrfry 2023-03-28 19:53:14 +02:00
parent 9320f49151
commit ba89f4a342
30 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
url=$(head -n 1 ../serverAddress)
# url='https://api.frylabs.net'
echo "Server url: $url"
if [ "$#" -ne 1 ]; then
echo "1 param required: json to send to localhost, got $#"
else
data=$(tr -d '\n' <"$1" | awk '$1=$1')
# data=$(node -e "console.log(encodeURIComponent('$data'));")
echo sending
echo "SENT DATA:"
../bin/hr.sh
echo "$data"
../bin/hr.sh
curl \
--cookie "sessionID=e0ac328d-86cc-4dbf-a00b-213bec6011e7" \
-H "Content-Type: application/json" \
-X POST --data "$data" \
"$url/isAdding"
fi