From 318a79e2788aa93df9a698b470a59c5ff197ce1c Mon Sep 17 00:00:00 2001 From: Admin Date: Mon, 17 Aug 2026 13:16:18 -0700 Subject: [PATCH] feat: add comments route and flight and tours routs --- routes/web.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/routes/web.php b/routes/web.php index 553657f..9c9a7bd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,26 @@ name('index'); + +Route::prefix('flights')->name('flights.')->controller(FlightController::class)->group(function () { + + Route::get('/', 'index')->name('index'); + Route::get('{flight}', 'show')->name('show'); + }); + +Route::prefix('tours')->name('tours.')->controller(TourController::class)->group(function () { + + Route::get('/', 'index')->name('index'); + Route::get('{tour}', 'show')->name('show'); + }); +Route::controller(CommentController::class)->group(function () { + Route::post('flights/{flight}/comments', 'storeFlight')->name('flights.comments'); + Route::post('tours/{tour}/comments', 'storeTour')->name('tours.comments'); + }); +