🔨 Replaces websockets with interval fetches
All checks were successful
Gitea Build Action / build-go (push) Successful in 36s
Gitea Build Action / build-nuxt (push) Successful in 10m7s

This commit is contained in:
2025-06-16 11:56:20 +02:00
parent 4b2248a6d7
commit d858b9e7c8
5 changed files with 55 additions and 74 deletions

View File

@@ -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))