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:
Claudio Maggioni 2020-03-21 00:43:04 +01:00
commit 1fe0d674a2

View file

@ -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);
}
}