Commit graph

7 commits

Author SHA1 Message Date
b054b02be6 fix(handlers): Handle DELETE for environment sensors
It now works as advertised in the README! *ahem*...
2026-07-25 23:04:20 +02:00
8c1adae040
Rename module 2024-05-26 20:52:15 +02:00
2fb2e5f151
We don't need to write anything on successful requests actually, 200 is the default 2024-01-16 01:48:48 +01:00
cf9678d712
Actually end the connection when request checks fail 2024-01-15 23:24:58 +01:00
efbd55aac4
Improve logging in handlers/sensors.go 2024-01-15 22:32:50 +01:00
2495ce5808
Remove superfluous WriteHeader calls 2024-01-15 22:20:53 +01:00
38710484f9
Generate HTTP endpoints for environment sensors
- Move update request sanity checks to new method in handlers/util.go
- Change EnvironmentSensor.Value type because ParseFloat returns float64
2024-01-14 01:10:38 +01:00