Skip to content

Commit

Permalink
SCRUM-84 feat: aws healthcheck api 제작
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareyong committed Sep 10, 2024
1 parent 2fee8f5 commit a1fc1dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ public class AuthController {

private final AuthService1 authService;

@Operation(summary = "AWS healthcheck", description = "헬스체크 api")
@GetMapping("/healthcheck")
public ApiResponse<String> healthcheck(){
return ApiResponse.onSuccess("로그인 성공");
}

@Operation(summary = "로그인 됐는지 확인하기", description = "JWT필터 통과 시 로그인 성공")
@GetMapping("/logincheck")
public ApiResponse<String> logincheck(){
public ApiResponse<String> logincheck(){
return ApiResponse.onSuccess("로그인 성공");
}

Expand Down Expand Up @@ -76,4 +82,6 @@ public ApiResponse<String> join(@RequestBody AuthRequest authRequest, @Authentic
return ApiResponse.onSuccess("회원가입 성공");
}



}

0 comments on commit a1fc1dc

Please sign in to comment.