Skip to content

Commit

Permalink
fix: 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
haesol822 committed Dec 19, 2023
1 parent bbdc37a commit eab7c76
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions src/pages/Frame/ApplyFrame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,22 +166,20 @@ const ApplyFrame = () => {
},
};

axios
.post(
"http://ec2-3-35-208-177.ap-northeast-2.compute.amazonaws.com:8080/photo",
formData,
config
)
.then((res) => {
console.log("프레임 적용한 사진 저장 API 응답:", res.data);
alert("저장 완료되었습니다.");
router("/photoselect");
})
.catch((err) => {
console.error("API 요청 중 오류 발생:", err);
});
}, "image/png");
};
axios
.post(
"http://ec2-3-35-208-177.ap-northeast-2.compute.amazonaws.com:8080/photo",
formData,
config
)
.then((res) => {
console.log("프레임 적용한 사진 저장 API 응답:", res.data);
alert("저장 완료되었습니다.")
})
.catch((err) => {
console.error("API 요청 중 오류 발생:", err);
});
}, "image/png");
});
}
};
Expand Down

0 comments on commit eab7c76

Please sign in to comment.