Skip to content

Commit c4f2c38

Browse files
authored
fix: 구매하기 엔드포인트 수정 (#387)
1 parent daa798f commit c4f2c38

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/pages/payment/Purchase.jsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,16 @@ const Purchase = () => {
240240
}
241241

242242
try {
243-
const response = await axios.post(`${SERVER_URL}item`, requestBody, {
244-
headers: {
245-
"Content-Type": "application/json",
246-
Authorization: `Bearer ${Cookies.get("accessToken")}`,
247-
},
248-
});
243+
const response = await axios.post(
244+
`${SERVER_URL}order/item`,
245+
requestBody,
246+
{
247+
headers: {
248+
"Content-Type": "application/json",
249+
Authorization: `Bearer ${Cookies.get("accessToken")}`,
250+
},
251+
}
252+
);
249253
const orderData = response.data[0];
250254
currentOrderId = orderData.id;
251255
orderIdRef.current = currentOrderId; // 재시도 시 재사용

0 commit comments

Comments
 (0)