From 7bf458c5d411684668d0564410a436dc84273486 Mon Sep 17 00:00:00 2001 From: Dabeen Jeong Date: Tue, 1 Aug 2023 15:38:29 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20refactor:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=20url=20=EB=B3=80=EA=B2=BD=20(#195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/funeat/auth/presentation/AuthController.java | 2 +- .../java/com/funeat/auth/presentation/AuthControllerTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"));