stormaaja / homeautomation

Home Automation
MIT License
0 stars 0 forks source link

Refactor measurement endpoints to be generic #16

Closed stormaaja closed 1 week ago

stormaaja commented 2 weeks ago

Remove dependency to temperature. Instead take measurement type and field from the path.

Add validation though. Allow only

Use grouping: https://gin-gonic.com/docs/examples/grouping-routes/

Rename store route to measurement route.

Rleated to #7