diff --git a/controllers/tourController.js b/controllers/tourController.js index 074ea6a0f0507df8dcf8179f99304dd9218bde77..e077cca12a8589124767d9d654b37bac3b0e441a 100644 --- a/controllers/tourController.js +++ b/controllers/tourController.js @@ -21,7 +21,7 @@ exports.getTourDetails = async (req, res) => { return res.status(404).send('ไม่พบข้อมูลทัวร์ที่ต้องการ'); } - res.render('tourDetails', { tour }); + res.render('tour-Details', { tour }); } catch (error) { console.error('Error fetching tour by ID:', error); res.status(500).send('เกิดข้อผิดพลาดในการดึงข้อมูลทัวร์');