Closed ivanvach closed 1 year ago
It looks like you're doing a POST not a PUT from the last line of the output you pasted above.
$ curl -X PUT localhost:3000/api/pool/off
{
"body": "pool",
"action": "off",
"sent": true
}
Oooops my bad. It works with put
Trying this using "Postman" software for Windows 10
HTTP PUT
192.168.1.149:3000/api/pool/on
Payload: none
Getting the response below. Also tried putting payload=1 and also 192.168.1.149:3000/api/pool without the suffix on and put "on" as payload. Every time same response
<!DOCTYPE html>