diff --git a/src/main/java/com/kakaoteck/golagola/config/SecurityConfig.java b/src/main/java/com/kakaoteck/golagola/config/SecurityConfig.java index 6d09255..c3b1300 100644 --- a/src/main/java/com/kakaoteck/golagola/config/SecurityConfig.java +++ b/src/main/java/com/kakaoteck/golagola/config/SecurityConfig.java @@ -99,12 +99,12 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { // 세션 설정: STATELESS http.sessionManagement(session -> session.sessionCreationPolicy(STATELESS)); - return http.build(); } private static final String[] WHITE_LIST_URL = { // "/api/v1/auth/**", + "/api/v1/auth/healthcheck", "/v2/api-docs", "/v3/api-docs", "/v3/api-docs/**", diff --git a/src/main/java/com/kakaoteck/golagola/domain/auth/controller/AuthController.java b/src/main/java/com/kakaoteck/golagola/domain/auth/controller/AuthController.java index 5ba01c4..7e3f69d 100644 --- a/src/main/java/com/kakaoteck/golagola/domain/auth/controller/AuthController.java +++ b/src/main/java/com/kakaoteck/golagola/domain/auth/controller/AuthController.java @@ -25,9 +25,15 @@ public class AuthController { private final AuthService1 authService; + @Operation(summary = "AWS healthcheck", description = "헬스체크 api") + @GetMapping("/healthcheck") + public ApiResponse healthcheck(){ + return ApiResponse.onSuccess("로그인 성공"); + } + @Operation(summary = "로그인 됐는지 확인하기", description = "JWT필터 통과 시 로그인 성공") @GetMapping("/logincheck") - public ApiResponse logincheck(){ + public ApiResponse logincheck(){ return ApiResponse.onSuccess("로그인 성공"); } @@ -76,4 +82,6 @@ public ApiResponse join(@RequestBody AuthRequest authRequest, @Authentic return ApiResponse.onSuccess("회원가입 성공"); } + + }