Fixed RoomCont... to return specific device data
@tommi27 why are you not avaliable at 1am?
This commit is contained in:
parent
cbfbb81c10
commit
c3bcfd7e6d
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ public class RoomController {
|
|||
* id).
|
||||
*/
|
||||
@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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue