add create device
This commit is contained in:
parent
69dae0673a
commit
c4b831d930
1 changed files with 1 additions and 1 deletions
|
@ -36,6 +36,6 @@ public class DeviceController {
|
||||||
|
|
||||||
@PostMapping("/devices")
|
@PostMapping("/devices")
|
||||||
public ResponseEntity createDevice(@RequestBody CreateDevicePayload payload) {
|
public ResponseEntity createDevice(@RequestBody CreateDevicePayload payload) {
|
||||||
return ok(tamagotchiService.createDevice(new Device(payload.getOwner(), payload.getColor()))).build();
|
return ok(tamagotchiService.createDevice(new Device(payload.getOwner(), payload.getColor())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue