From f402e8632ef8cd64db5c32c86cc176bc81dfab17 Mon Sep 17 00:00:00 2001 From: Yang ga-hyeon Date: Tue, 25 Feb 2025 09:34:06 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=EA=B5=AC=EA=B8=80=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=EC=A3=BC=EC=84=9D=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Common/UI/SocialLogin.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Common/UI/SocialLogin.tsx b/src/components/Common/UI/SocialLogin.tsx index 77f7615..a46cd5f 100644 --- a/src/components/Common/UI/SocialLogin.tsx +++ b/src/components/Common/UI/SocialLogin.tsx @@ -11,8 +11,7 @@ const SocialLogin = () => { switch (platform) { case "google": - // redirectUrl = await authService.googleLogin(); // 수정 필요 - alert("현재 개발 중입니다!"); + redirectUrl = await authService.googleLogin(); break; case "kakao": redirectUrl = await authService.kakaoLogin(); From e49269ddc070d272cbf94740513c86669ded267b Mon Sep 17 00:00:00 2001 From: Yang ga-hyeon Date: Tue, 25 Feb 2025 09:46:57 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=EC=97=94=EB=93=9C=ED=8F=AC?= =?UTF-8?q?=EC=9D=B8=ED=8A=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/userService.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/userService.ts b/src/services/userService.ts index 9f4c5c5..08b86cf 100644 --- a/src/services/userService.ts +++ b/src/services/userService.ts @@ -117,7 +117,7 @@ const userService = { getProfileInfo: async (makerId?: string): Promise => { try { - const endpoint = makerId ? `/users/profile/${makerId}` : "/users/profile"; + const endpoint = makerId ? `/users/maker/${makerId}` : "/profile"; const response = await api.get>(endpoint); return response; } catch (error) { @@ -147,7 +147,7 @@ const userService = { serviceArea?: string[]; }) => { try { - const response = await api.patch("/users/update/profile", payload); + const response = await api.patch("/profile/update", payload); return response; } catch (error) { console.error("프로필 수정 실패", error); @@ -164,7 +164,7 @@ const userService = { detailDescription?: string; }) => { try { - const response = await api.patch("/users/update/profile", payload); + const response = await api.patch("/profile/update", payload); return response; } catch (error) { console.error("메이커 프로필 수정 실패", error); @@ -189,7 +189,7 @@ const userService = { getMakerProfile: async (makerId: string): Promise => { try { - const response = await api.get(`/users/profile/${makerId}`); + const response = await api.get(`/users/maker/${makerId}`); return response; } catch (error: any) { if (error.response && error.response.status === BAD_REQUEST) {