Move refresh to a POST request
Technically it changes state...
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user