Move refresh to a POST request

Technically it changes state...
This commit is contained in:
2022-03-11 15:14:15 +00:00
parent 3f6c392969
commit 1ec8fdc54e
3 changed files with 5 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [[ "$REQUEST_PATH_SANE" =~ ^refresh ]]; then
ip=$(echo "$REQUEST_PATH_SANE" | cut -d '/' -f2)
ip=$(echo "$POST_DATA" | cut -d '=' -f2)
body="{\n\"time\": \"$(date +%T)\",\n"
body+="\"status\": \"unknown\"\n}\n"