From 3fa878a28af45506b02481850b024fe0ba8d21c6 Mon Sep 17 00:00:00 2001
From: 65160270 <65160270@go.buu.ac.th>
Date: Sat, 22 Mar 2025 23:51:31 +0700
Subject: [PATCH] update-address

---
 views/confirmation.ejs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/views/confirmation.ejs b/views/confirmation.ejs
index 9d3caef..a491ad2 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 })
-- 
GitLab