Skip to content

Commit

Permalink
Change the name of this method so it doesn't overlap the other one
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinAllen committed Nov 21, 2024
1 parent 5101f16 commit abe63b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private Page<Vet> findPaginated(int page) {
}

@GetMapping("/vets/{lastName}")
public @ResponseBody Vets showResourcesVetList(@PathVariable(name = "lastName") String lastName) {
public @ResponseBody Vets showResourcesVetListByLastName(@PathVariable(name = "lastName") String lastName) {
Vets vets = new Vets();
Collection<Vet> vetList = this.vetRepository.findByLastName(lastName);
for (Vet vet : vetList) {
Expand Down

0 comments on commit abe63b7

Please sign in to comment.