Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 3fa878a2 authored by 65160270's avatar 65160270
Browse files

update-address

parent 8bfa5ed1
No related branches found
No related tags found
No related merge requests found
......@@ -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 })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment