POST->GET property/get/{id}/value

This commit is contained in:
Patrick Haßel 2024-11-18 13:29:51 +01:00
parent 1acd5506c6
commit bad017e1dd

View File

@ -44,7 +44,7 @@ public class PropertyController implements ISearchController {
return propertyWriter.set(id, Property::setSlug, value == null || value.isEmpty() ? null : value); 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) { public Double getValue(@PathVariable final long id) {
return channelReader.read(propertyReader.getById(id)).orElse(null); return channelReader.read(propertyReader.getById(id)).orElse(null);
} }