diff --git a/src/main/java/com/ajou/hertz/common/auth/controller/AuthControllerV1.java b/src/main/java/com/ajou/hertz/common/auth/controller/AuthControllerV1.java index f25a6a3..6d4d262 100644 --- a/src/main/java/com/ajou/hertz/common/auth/controller/AuthControllerV1.java +++ b/src/main/java/com/ajou/hertz/common/auth/controller/AuthControllerV1.java @@ -61,7 +61,7 @@ public JwtTokenInfoResponse loginV1_1(@RequestBody @Valid LoginRequest loginRequ ), @ApiResponse(responseCode = "Any", description = "[10000] 카카오 서버와의 통신 중 오류가 발생한 경우. Http status code는 kakao에서 응답받은 것과 동일하게 설정하여 응답한다.", content = @Content) }) - @PostMapping(value = "/login/kakao", headers = API_MINOR_VERSION_HEADER_NAME + "=" + 1) + @PostMapping(value = "/kakao/login", headers = API_MINOR_VERSION_HEADER_NAME + "=" + 1) public JwtTokenInfoResponse kakaoLoginV1_1(@RequestBody @Valid KakaoLoginRequest kakaoLoginRequest) { JwtTokenInfoDto jwtTokenInfoDto = kakaoService.login(kakaoLoginRequest); return JwtTokenInfoResponse.from(jwtTokenInfoDto); diff --git a/src/main/java/com/ajou/hertz/common/config/SecurityConfig.java b/src/main/java/com/ajou/hertz/common/config/SecurityConfig.java index 92975f2..005b694 100644 --- a/src/main/java/com/ajou/hertz/common/config/SecurityConfig.java +++ b/src/main/java/com/ajou/hertz/common/config/SecurityConfig.java @@ -43,7 +43,7 @@ public class SecurityConfig { "/v*/users", POST, "/v*/users/existence", GET, "/v*/auth/login", POST, - "/v*/auth/login/kakao", POST + "/v*/auth/kakao/login", POST ); @Bean diff --git a/src/test/java/com/ajou/hertz/unit/common/auth/controller/AuthControllerV1Test.java b/src/test/java/com/ajou/hertz/unit/common/auth/controller/AuthControllerV1Test.java index d20f80f..c459705 100644 --- a/src/test/java/com/ajou/hertz/unit/common/auth/controller/AuthControllerV1Test.java +++ b/src/test/java/com/ajou/hertz/unit/common/auth/controller/AuthControllerV1Test.java @@ -76,7 +76,7 @@ public AuthControllerV1Test(MockMvc mvc, ObjectMapper objectMapper) { // when & then mvc.perform( - post("/v1/auth/login/kakao") + post("/v1/auth/kakao/login") .header(API_MINOR_VERSION_HEADER_NAME, 1) .contentType(MediaType.APPLICATION_JSON) .content(objectMapper.writeValueAsString(kakaoLoginRequest))