diff --git a/src/main/java/com/spot/spotserver/api/auth/controller/AuthController.java b/src/main/java/com/spot/spotserver/api/auth/controller/AuthController.java index 963a9f5..d07c3e1 100644 --- a/src/main/java/com/spot/spotserver/api/auth/controller/AuthController.java +++ b/src/main/java/com/spot/spotserver/api/auth/controller/AuthController.java @@ -3,21 +3,16 @@ import com.spot.spotserver.api.auth.dto.request.TokenRequest; import com.spot.spotserver.api.auth.dto.response.TokenResponse; import com.spot.spotserver.api.auth.service.AuthService; -import com.spot.spotserver.api.user.service.UserService; import com.spot.spotserver.common.payload.ApiResponse; import com.spot.spotserver.common.payload.SuccessCode; import lombok.RequiredArgsConstructor; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; @RestController @RequiredArgsConstructor public class AuthController { private final AuthService authService; - private final UserService userService; @PostMapping("/api/login/kakao") public ApiResponse login(@RequestParam final String accessToken) { @@ -34,7 +29,7 @@ public ApiResponse login(@RequestParam final String accessToken) @PostMapping("/api/refresh") public ApiResponse reissueToken(@RequestBody TokenRequest request) { - TokenResponse result = userService.reissueToken(request.refreshToken()); + TokenResponse result = authService.reissueToken(request.refreshToken()); return ApiResponse.success(SuccessCode.REISSUE_TOKEN_SUCCESS, result); } }