Skip to content

Commit

Permalink
✨ [#97] feature: health-check api 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
strongmhk committed Aug 22, 2024
1 parent 752f263 commit 9e845ac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gaji/service/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/gaji/service/domain/test/HealCheckController.java
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 9e845ac

Please sign in to comment.