diff --git a/backend/cmd/main.go b/backend/cmd/main.go index f06640a..5892d5a 100644 --- a/backend/cmd/main.go +++ b/backend/cmd/main.go @@ -19,7 +19,7 @@ type ButtonState struct { // Keep in mind that concurrent state access is not (usually) safe // And will in pracice be guarded by a mutex func (b *ButtonState) pressHandler(w http.ResponseWriter, r *http.Request) { - if r.Method != "POST" { + if r.Method == "POST" { b.PressCount++ }