diff --git a/src/main/java/de/ph87/homeautomation/property/PropertyController.java b/src/main/java/de/ph87/homeautomation/property/PropertyController.java index de13709..4f42c23 100644 --- a/src/main/java/de/ph87/homeautomation/property/PropertyController.java +++ b/src/main/java/de/ph87/homeautomation/property/PropertyController.java @@ -44,7 +44,7 @@ public class PropertyController implements ISearchController { return propertyWriter.set(id, Property::setSlug, value == null || value.isEmpty() ? null : value); } - @PostMapping("get/{id}/value") + @GetMapping("get/{id}/value") public Double getValue(@PathVariable final long id) { return channelReader.read(propertyReader.getById(id)).orElse(null); }