Made /wol a POST request instead of a GET

Since it does modify state.

* Also fixed a bug where ping did sometimes still write to the
response.
This commit is contained in:
2022-03-10 23:33:05 +00:00
parent d47683dc02
commit 3f6c392969
6 changed files with 60 additions and 21 deletions

View File

@@ -38,5 +38,5 @@ fi
# Ensure variable can be read by the get handler
export WAKEBOARD_TITLE
./bashserv/bashserv.sh -s "./static" -g "./handle_get.sh" -p "$PORT"
./bashserv/bashserv.sh -s "./static" -g "./handle_get.sh" --post "./handle_post.sh" -p "$PORT"