Skip to content

Commit

Permalink
- Created health check method
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyToledano committed Aug 16, 2024
1 parent f343307 commit ee20322
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,11 @@ public GroupIdExistsResponse checkGroupIdExists(@RequestBody GroupIdExistsReques
log.info("Received a request to check group id exists with id {}", groupIdExistsRequest.groupId());
return new GroupIdExistsResponse(groupService.checkGroupIdExists(groupIdExistsRequest.groupId()));
}

@GetMapping("/health")
@ResponseStatus(HttpStatus.OK)
public String HealthCheck(){
log.info("Received a request to health check");
return "OK";
}
}

0 comments on commit ee20322

Please sign in to comment.