Skip to content

Commit

Permalink
Feat: healthcheck api 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
BYEONGRYEOL committed Aug 6, 2024
1 parent 697b13e commit a243944
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions genti-api/src/main/java/com/gt/genti/health/HealthController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.gt.genti.health;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.RequiredArgsConstructor;

@RestController
@RequiredArgsConstructor
public class HealthController {

@GetMapping("/health")
public ResponseEntity<?> health() {
return ResponseEntity.ok().build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ void postConstruct() {
}

private List<String> filterWhiteList = new ArrayList<>(List.of(
"/health",
"/favicon.ico",
"/error",
"/auth/**",
Expand All @@ -43,6 +44,7 @@ void postConstruct() {
));

private List<String> securityWhiteList = new ArrayList<>(List.of(
"/health",
"/favicon.ico",
"/error",
"/auth/**",
Expand Down

0 comments on commit a243944

Please sign in to comment.