From c3bcfd7e6dbcb319d1b6d8b9a229415730b0afb4 Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Sat, 21 Mar 2020 00:38:01 +0100 Subject: [PATCH] Fixed RoomCont... to return specific device data @tommi27 why are you not avaliable at 1am? --- .../inf/sa4/sanmarinoes/smarthut/controller/RoomController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/controller/RoomController.java b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/controller/RoomController.java index fb42037..8d083d9 100644 --- a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/controller/RoomController.java +++ b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/controller/RoomController.java @@ -79,7 +79,7 @@ public class RoomController { * id). */ @GetMapping(path = "/{roomId}/devices") - public @ResponseBody List getDevices(@PathVariable("roomId") long roomid) { + public List getDevices(@PathVariable("roomId") long roomid) { return deviceRepository.findByRoomId(roomid); } }