From abb2f478ca29fb31f841f2eec28410b583c2df2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=91=ED=98=84?= Date: Tue, 5 Sep 2023 13:42:48 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=EB=B0=B1=EC=97=94=EB=93=9C=20=EC=84=9C?= =?UTF-8?q?=EB=B2=84=20=EC=A3=BC=EC=86=8C=20=EC=88=98=EC=A0=95=20=ED=8F=AC?= =?UTF-8?q?=ED=8A=B8=EB=A5=BC=208080=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20Issues#2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/Logins/EmailLogin.tsx | 2 +- client/src/components/Logins/OAuthLogin.tsx | 4 ++-- client/src/components/Signups/EmailCertify.tsx | 2 +- client/src/components/Signups/EmailSignup.tsx | 2 +- client/src/components/Signups/Password.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/components/Logins/EmailLogin.tsx b/client/src/components/Logins/EmailLogin.tsx index a0adb60c..b1b10a31 100644 --- a/client/src/components/Logins/EmailLogin.tsx +++ b/client/src/components/Logins/EmailLogin.tsx @@ -31,7 +31,7 @@ const EmailLoginModal: React.FC = ({ onClose, onLogin }) = const handleLoginClick = async () => { try { // 백엔드에 로그인 요청 - const response = await axios.post("http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com/login", { + const response = await axios.post("http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com:8080/login", { email, password, }); diff --git a/client/src/components/Logins/OAuthLogin.tsx b/client/src/components/Logins/OAuthLogin.tsx index 8167de9d..0a363d69 100644 --- a/client/src/components/Logins/OAuthLogin.tsx +++ b/client/src/components/Logins/OAuthLogin.tsx @@ -16,7 +16,7 @@ const OAuthLoginModal: React.FC = ({ onClose, onEmailLoginClick // 구글 로그인 핸들러 const handleGoogleLogin = async () => { try { - const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com/oauth2/authorization/google'); + const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com:8080/oauth2/authorization/google'); if (response.status === 200) { console.log("Successfully logged in with Google!"); onClose(); @@ -31,7 +31,7 @@ const OAuthLoginModal: React.FC = ({ onClose, onEmailLoginClick // 카카오 로그인 핸들러 const handleKakaoLogin = async () => { try { - const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com/oauth2/authorization/kakao'); + const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com:8080/oauth2/authorization/kakao'); if (response.status === 200) { console.log("Successfully logged in with Kakao!"); onClose(); diff --git a/client/src/components/Signups/EmailCertify.tsx b/client/src/components/Signups/EmailCertify.tsx index 62655582..2bfc6cda 100644 --- a/client/src/components/Signups/EmailCertify.tsx +++ b/client/src/components/Signups/EmailCertify.tsx @@ -31,7 +31,7 @@ const EmailVerificationModal: React.FC = ({ onClose // 다음 단계 버튼 클릭시 이메일 인증을 처리하는 함수 const handleNextStepClick = async () => { try { - const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com/email/confirm', { email, code: verificationCode }); + const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com:8080/email/confirm', { email, code: verificationCode }); if (response.status === 200) { onNextStep(); } else { diff --git a/client/src/components/Signups/EmailSignup.tsx b/client/src/components/Signups/EmailSignup.tsx index 91706800..438c65ce 100644 --- a/client/src/components/Signups/EmailSignup.tsx +++ b/client/src/components/Signups/EmailSignup.tsx @@ -22,7 +22,7 @@ const EmailSignupModal: React.FC = ({ onClose, onRequestV const handleVerificationRequest = async () => { try { // 백엔드 배포 주소로 입력받은 이메일 전송 - const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com/email/send', { email }); + const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com:8080/email/send', { email }); if (response.status === 200) { onRequestVerification(); } else { diff --git a/client/src/components/Signups/Password.tsx b/client/src/components/Signups/Password.tsx index 1cf92e5e..f3ae6e04 100644 --- a/client/src/components/Signups/Password.tsx +++ b/client/src/components/Signups/Password.tsx @@ -34,7 +34,7 @@ const PasswordSettingModal: React.FC<{ onClose: () => void, email: string }> = ( // 확인 버튼 클릭 시 데이터를 서버로 전송하는 함수 const handleConfirmClick = async () => { try { - const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com/members', { + const response = await axios.post('http://ec2-13-125-246-160.ap-northeast-2.compute.amazonaws.com:8080/members', { email, name, password,