mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:45:49 +00:00
updated code
This commit is contained in:
parent
4c36948e82
commit
79456cc23a
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ class VisitController {
|
||||||
return "pets/createOrUpdateVisitForm";
|
return "pets/createOrUpdateVisitForm";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/owners/{ownerId}/pets/{petId}/visits/new")
|
||||||
|
public String initNewVisitFormPet() {
|
||||||
|
return "pets/createOrUpdateVisitForm";
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/owners/{ownerId}/pets/{petId}/visits")
|
@GetMapping("/owners/{ownerId}/pets/{petId}/visits")
|
||||||
public String initNewVisitFormVisit() {
|
public String initNewVisitFormVisit() {
|
||||||
return "pets/createOrUpdateVisitForm";
|
return "pets/createOrUpdateVisitForm";
|
||||||
|
|
Loading…
Reference in a new issue