diff --git a/backend/src/main/java/com/funeat/auth/presentation/AuthController.java b/backend/src/main/java/com/funeat/auth/presentation/AuthController.java index 21de92552..50415d2b4 100644 --- a/backend/src/main/java/com/funeat/auth/presentation/AuthController.java +++ b/backend/src/main/java/com/funeat/auth/presentation/AuthController.java @@ -28,7 +28,7 @@ public ResponseEntity kakaoLogin() { .build(); } - @GetMapping("/login/oauth2/code/kakao") + @GetMapping("/api/login/oauth2/code/kakao") public ResponseEntity loginAuthorizeUser(@RequestParam("code") final String code, final HttpServletRequest request) { final SignUserDto signUserDto = authService.loginWithKakao(code); diff --git a/backend/src/test/java/com/funeat/auth/presentation/AuthControllerTest.java b/backend/src/test/java/com/funeat/auth/presentation/AuthControllerTest.java index cac2b8879..e5e732601 100644 --- a/backend/src/test/java/com/funeat/auth/presentation/AuthControllerTest.java +++ b/backend/src/test/java/com/funeat/auth/presentation/AuthControllerTest.java @@ -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("/")); @@ -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"));