From b4048292da2e5209e45a8277be09ec75d15c9729 Mon Sep 17 00:00:00 2001 From: Bahar Date: Mon, 17 Aug 2026 13:08:26 +0330 Subject: [PATCH] feat:add routes for flights and tours --- routes/web.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/routes/web.php b/routes/web.php index c8809af..7af5210 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,7 +1,33 @@ 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', 'flightStore')->name('flights.comments.store'); + Route::post('/tours/{tour}/comments', 'tourStore')->name('tours.comments.store'); + }); +