Skip to content

Commit

Permalink
[BE] refactor: 로그인 url 변경 (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
70825 authored Aug 1, 2023
1 parent c94f539 commit 7bf458c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ResponseEntity<Void> kakaoLogin() {
.build();
}

@GetMapping("/login/oauth2/code/kakao")
@GetMapping("/api/login/oauth2/code/kakao")
public ResponseEntity<Void> loginAuthorizeUser(@RequestParam("code") final String code,
final HttpServletRequest request) {
final SignUserDto signUserDto = authService.loginWithKakao(code);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class loginAuthorizeUser_테스트 {
when(authService.loginWithKakao(code)).thenReturn(signUserDto);

// then
mockMvc.perform(get("/login/oauth2/code/kakao")
mockMvc.perform(get("/api/login/oauth2/code/kakao")
.param("code", code))
.andExpect(status().isFound())
.andExpect(redirectedUrl("/"));
Expand All @@ -56,7 +56,7 @@ class loginAuthorizeUser_테스트 {
when(authService.loginWithKakao(code)).thenReturn(signUserDto);

// then
mockMvc.perform(get("/login/oauth2/code/kakao")
mockMvc.perform(get("/api/login/oauth2/code/kakao")
.param("code", code))
.andExpect(status().isFound())
.andExpect(redirectedUrl("/profile"));
Expand Down

0 comments on commit 7bf458c

Please sign in to comment.