diff --git a/src/main/java/gaji/service/config/SecurityConfig.java b/src/main/java/gaji/service/config/SecurityConfig.java index 90d59880..3c42d099 100644 --- a/src/main/java/gaji/service/config/SecurityConfig.java +++ b/src/main/java/gaji/service/config/SecurityConfig.java @@ -38,7 +38,7 @@ public class SecurityConfig { private static final String[] AUTH_WHITELIST = { "/oauth2/**", "/swagger-ui/**", "/api-docs", "/swagger-ui-custom.html", "/v3/api-docs/**", "/api-docs/**", "/swagger-ui.html", "/reissue", "/", "/my", - "/api/**", "/api/vote/**" + "/api/**", "/api/vote/**", "/health-check" }; @Bean diff --git a/src/main/java/gaji/service/domain/test/HealCheckController.java b/src/main/java/gaji/service/domain/test/HealCheckController.java new file mode 100644 index 00000000..131eefd3 --- /dev/null +++ b/src/main/java/gaji/service/domain/test/HealCheckController.java @@ -0,0 +1,14 @@ +package gaji.service.domain.test; + +import gaji.service.global.base.BaseResponse; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class HealCheckController { + + @GetMapping("/health-check") + public BaseResponse healthCheck() { + return BaseResponse.onSuccess(null); + } +}