We don't need to write anything on successful requests actually, 200 is the default
This commit is contained in:
parent
fa6e6bd142
commit
2fb2e5f151
2 changed files with 0 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
|||
package handlers
|
||||
|
||||
import (
|
||||
"io"
|
||||
"log"
|
||||
"math"
|
||||
"net/http"
|
||||
|
@ -34,7 +33,5 @@ func EnvironmentSensor(
|
|||
// Set SpaceAPI response values
|
||||
resp.Value = newState
|
||||
resp.LastChange = time.Now().Unix()
|
||||
|
||||
_, _ = io.WriteString(w, "Update Successful")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package handlers
|
||||
|
||||
import (
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
@ -33,7 +32,5 @@ func StateOpen(
|
|||
// Set SpaceAPI response values
|
||||
resp.Open = newState
|
||||
resp.LastChange = time.Now().Unix()
|
||||
|
||||
_, _ = io.WriteString(w, "Update Successful")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue