From 4ecc7f7562f3149ec167f6e720e40ad448fecb90 Mon Sep 17 00:00:00 2001
From: 65160024 <65160024@go.buu.ac.th>
Date: Tue, 25 Mar 2025 06:03:05 +0000
Subject: [PATCH] update

---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 0485375..c6b6da7 100644
--- a/index.js
+++ b/index.js
@@ -337,7 +337,7 @@ app.post("/approve-loan", isAuthenticated, isAdmin, (req, res) => {
 
 
 // Route แสดงหน้าการยืนยันการยืม
-router.post('/confirm-loan', (req, res) => {
+app.post('/confirm-loan', (req, res) => {
   const { equipment_id, quantity } = req.body;
 
   // คำสั่ง SQL เพื่อลงข้อมูลการยืม
-- 
GitLab