🔨 Replaces websockets with interval fetches
This commit is contained in:
@@ -24,7 +24,6 @@ var token string
|
||||
|
||||
// the condition is: distance >= threshold (is door open)
|
||||
var opened = false
|
||||
var openedChange = make(chan any)
|
||||
|
||||
// is door locked
|
||||
var locked = false
|
||||
@@ -118,7 +117,6 @@ func main() {
|
||||
app.GET("/", helloWorld)
|
||||
|
||||
app.GET("/opened", authed(getOpened))
|
||||
app.GET("/opened/ws", authed(getOpenedWs))
|
||||
app.POST("/opened", authed(setOpened))
|
||||
|
||||
app.GET("/locked", authed(getLocked))
|
||||
|
Reference in New Issue
Block a user