From 3ce91ac46be0708510f6d3a1af3331cd92c6f2fd Mon Sep 17 00:00:00 2001 From: 65160024 <65160024@go.buu.ac.th> Date: Tue, 25 Mar 2025 03:36:35 +0000 Subject: [PATCH] update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 59f44a6..4179def 100644 --- a/index.js +++ b/index.js @@ -377,7 +377,7 @@ app.post("/confirm-loan", (req, res) => { // Route สำหรับยืนยันการยืม -app.post('/submit-loan', (req, res) => { +app.post('/confirm-loan', (req, res) => { const user_id = req.user.id; // สมมติว่าผู้ใช้ล็อกอินแล้ว const equipment_id = req.body.equipment_id; const quantity = req.body.quantity; -- GitLab