Merge branch '38-get-room-id-devices-does-not-return-device-specific-data' into 'dev'
Resolve "Get /room/{id}/devices does not return device specific data" Closes #38 See merge request sa4-2020/the-sanmarinoes/backend!49
This commit is contained in:
commit
1fe0d674a2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue