diff --git a/controllers/tourController.js b/controllers/tourController.js index e077cca12a8589124767d9d654b37bac3b0e441a..05c42a9830a91326cc1d12d06180c85e81e39981 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('tour-Details', { tour }); + res.render('tour-details', { tour }); } catch (error) { console.error('Error fetching tour by ID:', error); res.status(500).send('เกิดข้อผิดพลาดในการดึงข้อมูลทัวร์');