Skip to content

Commit

Permalink
Merge pull request #55 from codestates-seb/dev-client#2/header1
Browse files Browse the repository at this point in the history
[FE] fix :백엔드 서버 주소 수정
  • Loading branch information
sirloinbh authored Sep 5, 2023
2 parents a920f60 + abb2f47 commit 1b8bb9d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Logins/EmailLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const EmailLoginModal: React.FC<EmailLoginModalProps> = ({ 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,
});
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Logins/OAuthLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const OAuthLoginModal: React.FC<LoginModalProps> = ({ 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();
Expand All @@ -31,7 +31,7 @@ const OAuthLoginModal: React.FC<LoginModalProps> = ({ 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();
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Signups/EmailCertify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const EmailVerificationModal: React.FC<EmailVerificationModalProps> = ({ 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 {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Signups/EmailSignup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const EmailSignupModal: React.FC<EmailSignupModalProps> = ({ 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 {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Signups/Password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1b8bb9d

Please sign in to comment.