Skip to content

Commit

Permalink
feat: #25 카카오 로그인 API endpoint 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Wo-ogie committed Feb 19, 2024
1 parent f09605c commit 7e77626
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7e77626

Please sign in to comment.