From 40a1f129b093758f8232eaf722548165cbbfc0b7 Mon Sep 17 00:00:00 2001 From: Atiwit Pattanapukdee <65160394@go.buu.ac.th> Date: Thu, 20 Mar 2025 22:52:13 +0700 Subject: [PATCH] Project Round 9 --- controllers/tourController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/tourController.js b/controllers/tourController.js index 488b1e3..736e026 100644 --- a/controllers/tourController.js +++ b/controllers/tourController.js @@ -264,7 +264,7 @@ exports.deleteTour = async (req, res) => { } await Tour.deleteTour(tourId); - res.redirect('/tourlist'); // หรือส่ง JSON กลับ + res.redirect('/'); } catch (error) { res.status(500).send(error.message); } -- GitLab