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(); 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) {