From 2e7778b3f3ec90df344aa2781bd41358c6ccc492 Mon Sep 17 00:00:00 2001 From: Heeyeun Ko Date: Fri, 15 Nov 2024 18:56:38 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=97=94=EB=93=9C=ED=8F=AC=EC=9D=B8?= =?UTF-8?q?=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/components/CheckDuplicateEmail.tsx | 2 +- src/pages/MainPage/components/Aquarium.tsx | 2 +- src/pages/Start/SignupPage.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/CheckDuplicateEmail.tsx b/src/components/CheckDuplicateEmail.tsx index 4dcd923..8fb51e9 100644 --- a/src/components/CheckDuplicateEmail.tsx +++ b/src/components/CheckDuplicateEmail.tsx @@ -15,7 +15,7 @@ const CheckDuplicateEmail: React.FC = ({ value, text, handleChange const checkEmail = async () => { try { - const response = await axios.get(`${API_BASE_URL}/api/v1/user/email/${value}`); + const response = await axios.get(`/api/v1/user/email/${value}`); if (response.data) { toast({ title: "가입 가능한 이메일입니다.", diff --git a/src/pages/MainPage/components/Aquarium.tsx b/src/pages/MainPage/components/Aquarium.tsx index d6571fb..d4324d0 100644 --- a/src/pages/MainPage/components/Aquarium.tsx +++ b/src/pages/MainPage/components/Aquarium.tsx @@ -47,7 +47,7 @@ const Aquarium: React.FC = ({ children }) => { useEffect(() => { const fetchFishData = async () => { try { - // const response = await axios.get(`${API_BASE_URL}/api/v1/pokedex`, + // const response = await axios.get(`/api/v1/pokedex`, // { headers: { // Authorization: `Bearer ${accessToken}`, // Bearer 토큰 추가 // }, diff --git a/src/pages/Start/SignupPage.tsx b/src/pages/Start/SignupPage.tsx index c627767..55277f9 100644 --- a/src/pages/Start/SignupPage.tsx +++ b/src/pages/Start/SignupPage.tsx @@ -24,7 +24,7 @@ const SignupPage: React.FC = () => { const handleSignup = async () => { try { - const response = await axios.post(`${API_BASE_URL}/api/v1/user/signup`, { + const response = await axios.post(`/api/v1/user/signup`, { email, nickName, password,