Skip to content

Commit

Permalink
Docker changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek081141 committed Jul 8, 2024
1 parent 843922b commit 8365d00
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public ResponseEntity getPerson(@PathVariable @NotNull String id) {
return ResponseEntity.ok().body(personEntity);
}

@GetMapping(path = "/health" )
public ResponseEntity health() {
return ResponseEntity.ok().body("OK");
}

@GetMapping(path = "/getPersons" )
public ResponseEntity getPersons() {
List<Person> personEntity = personRepository.findAll();
Expand Down

0 comments on commit 8365d00

Please sign in to comment.