mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Rename create owner controller handler.
This commit is contained in:
parent
1752f1789b
commit
f535c69eea
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ public class OwnerController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/new")
|
@PostMapping("/new")
|
||||||
public ResponseEntity<Object> processCreationForm(@Valid @RequestBody NewOwnerForm owner, BindingResult result) {
|
public ResponseEntity<Object> createOwner(@Valid @RequestBody NewOwnerForm owner, BindingResult result) {
|
||||||
if (result.hasErrors()) {
|
if (result.hasErrors()) {
|
||||||
return new ResponseEntity<Object>(result.getAllErrors(),HttpStatus.BAD_REQUEST);
|
return new ResponseEntity<Object>(result.getAllErrors(),HttpStatus.BAD_REQUEST);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue