diff --git a/routes/admins.php b/routes/admins.php index 0e3515c..9045eef 100644 --- a/routes/admins.php +++ b/routes/admins.php @@ -1,4 +1,6 @@ name('admin.')->group(function () { Route::delete('{tour}', 'destroy')->name('destroy'); }); + Route::prefix('flights')->name('flights.')->group(function () { + + Route::get('/', [FlightController::class, 'index'])->name('index'); + + Route::get('/{flight}/edit', [FlightController::class, 'edit'])->name('edit'); + + Route::put('/{flight}', [FlightController::class, 'update'])->name('update'); + + Route::get('/flights/create', [FlightController::class, 'create'])->name('create'); + + Route::post('/flights', [FlightController::class, 'store'])->name('store'); + + Route::delete('/{flight}', [FlightController::class, 'destroy'])->name('destroy'); + }); + });