diff --git a/index.js b/index.js
index 04853757b75a0403a9ca7262662134a8a2abd88b..c6b6da7f711ff50c263355f9d091b5436023a49a 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 เพื่อลงข้อมูลการยืม