Fixed RoomCont... to return specific device data

@tommi27 why are you not avaliable at 1am?
This commit is contained in:
Claudio Maggioni 2020-03-21 00:38:01 +01:00
parent cbfbb81c10
commit c3bcfd7e6d

View file

@ -79,7 +79,7 @@ public class RoomController {
* id). * id).
*/ */
@GetMapping(path = "/{roomId}/devices") @GetMapping(path = "/{roomId}/devices")
public @ResponseBody List<? extends Device> getDevices(@PathVariable("roomId") long roomid) { public List<Device> getDevices(@PathVariable("roomId") long roomid) {
return deviceRepository.findByRoomId(roomid); return deviceRepository.findByRoomId(roomid);
} }
} }