diff --git a/src/main/java/rootbox/rootboxApp/api/user/presentation/UserApi.java b/src/main/java/rootbox/rootboxApp/api/user/presentation/UserApi.java index 627b171..e42a768 100644 --- a/src/main/java/rootbox/rootboxApp/api/user/presentation/UserApi.java +++ b/src/main/java/rootbox/rootboxApp/api/user/presentation/UserApi.java @@ -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 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 getKakaoToken(@RequestParam("code") String code){ return CommonResponse.onSuccess(userService.getKakaoToken(code)); } diff --git a/src/main/java/rootbox/rootboxApp/global/security/config/SecurityConfig.java b/src/main/java/rootbox/rootboxApp/global/security/config/SecurityConfig.java index cb148b5..8617539 100644 --- a/src/main/java/rootbox/rootboxApp/global/security/config/SecurityConfig.java +++ b/src/main/java/rootbox/rootboxApp/global/security/config/SecurityConfig.java @@ -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(