Skip to content

Commit

Permalink
Merge pull request #101 from Leets-Official/fix/#95/API-경로-해제
Browse files Browse the repository at this point in the history
Fix #101 api 경로 해제
  • Loading branch information
hyxklee authored Jan 7, 2025
2 parents 4a1098d + 92afe44 commit 61d6b95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ public CommonResponse<SocialLoginResponse> login(@RequestBody @Valid Login dto)
}

@PostMapping("/kakao/auth")
@Operation(summary = "카카오 소셜 회원가입 전 요청 API")
@Operation(summary = "카카오 소셜 회원가입 전 요청 API (미사용 API)")
public CommonResponse<UserResponseDto.SocialAuthResponse> beforeRegister(@RequestBody @Valid Login dto) {
UserResponseDto.SocialAuthResponse response = userUseCase.authenticate(dto);
return CommonResponse.createSuccess(SOCIAL_AUTH_SUCCESS.getMessage(), response);
}

@PostMapping("/apply")
@Operation(summary = "동아리 지원 신청. 현재 사용하지 않으므로 회원가입 시 social-register api로 요청 바람")
@Operation(summary = "동아리 지원 신청. 현재 사용하지 않으므로 회원가입 시 /kakao/register api로 요청 바람")
public CommonResponse<Void> apply(@RequestBody @Valid SignUp dto) {
userUseCase.apply(dto);
return CommonResponse.createSuccess(USER_APPLY_SUCCESS.getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.authorizeHttpRequests(
authorize ->
authorize
.requestMatchers("/api/v1/users/social-login", "api/v1/users/social-auth", "api/v1/users/integrate", "/api/v1/users/apply", "/api/v1/users/register", "/api/v1/users/email", "/api/v1/users/refresh").permitAll()
.requestMatchers("/api/v1/users/kakao/login", "api/v1/users/kakao/register", "api/v1/users/kakao/link", "/api/v1/users/apply", "/api/v1/users/email", "/api/v1/users/refresh").permitAll()
.requestMatchers("/health-check").permitAll()
.requestMatchers("/admin", "/admin/login", "/admin/account", "/admin/meeting", "/admin/member", "/admin/penalty",
"/js/**", "/img/**", "/scss/**", "/vendor/**").permitAll()
Expand Down

0 comments on commit 61d6b95

Please sign in to comment.