Skip to content
Merged

. #13

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,24 @@
@Slf4j
@Validated
@Tag(name = "User Api", description = "rootbox 사용자 관련 Api입니다.")
@RequestMapping(value = "/api/v1/users")
public class UserApi {

private final UserService userService;

@GetMapping(value = "/api/v1/user/health")
public String health2() {return "I'm healthy!!!" ;}

@GetMapping(value = "/api/v1/users/auth/health")
@GetMapping(value = "/auth/health")
public String health() {return "I'm healthy!!!!!" ;}

@PostMapping(value = "/api/v1/users/auth/kakao")
@PostMapping(value = "/auth/kakao")
public CommonResponse<SocialLoginDto.KakaoSocialLoginResponseDto> kakaoSocialLogin(@RequestBody @Valid SocialLoginDto.KakaoSocialLoginRequestDto requestDto) {
return CommonResponse.onSuccess(userService.socialLogin(requestDto));
}
@GetMapping(value = "/api/v1/users/auth/kakao/code")
@GetMapping(value = "/auth/kakao/code")
public void kakaoSocailLoginTest(HttpServletResponse response) throws IOException {
response.sendRedirect(userService.getKakaoCode());
}

@GetMapping(value = "/api/v1/users/auth/kakao/test")
@GetMapping(value = "/auth/kakao/test")
public CommonResponse<String> getKakaoToken(@RequestParam("code") String code){
return CommonResponse.onSuccess(userService.getKakaoToken(code));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public SecurityFilterChain JwtFilterChain(HttpSecurity http) throws Exception {
authorize -> {
// authorize.requestMatchers("/swagger-ui/**").permitAll();
authorize.requestMatchers("/api/v1/users/auth/**").permitAll();
authorize.requestMatchers("/api/v1/user/**").permitAll();
authorize.anyRequest().authenticated();
})
.exceptionHandling(
Expand Down