From bad017e1dd071acfdffbdeb389a156ba46577214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Mon, 18 Nov 2024 13:29:51 +0100 Subject: [PATCH] POST->GET property/get/{id}/value --- .../de/ph87/homeautomation/property/PropertyController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }