diff --git a/views/confirmation.ejs b/views/confirmation.ejs index 9d3caeff9842197d9159825e264d4652cd7b0b6e..a491ad2a4e3a6976c9bc67b43850aa6f5c83d4b3 100644 --- a/views/confirmation.ejs +++ b/views/confirmation.ejs @@ -30,7 +30,7 @@ const orderId = "<%= order.id %>"; - const response = await fetch(`/order/update/${orderId}`, { // แก้ให้ตรง API + const response = await fetch(`/order/detail/${orderId}`, { // แก้ให้ตรง API method: "PUT", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ shipping_address: newAddress })