new route fix
This commit is contained in:
parent
8be7b2c263
commit
10dc0c9741
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@ public class AutomationController {
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public Automation get(@PathVariable long id) throws NotFoundException {
|
||||||
|
return automationRepository.findById(id).orElseThrow(NotFoundException::new);
|
||||||
|
}
|
||||||
|
|
||||||
private Automation save(Automation newRL, AutomationSaveRequest s) {
|
private Automation save(Automation newRL, AutomationSaveRequest s) {
|
||||||
newRL.setName(s.getName());
|
newRL.setName(s.getName());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue