phpvms/routes/admin.php
2017-06-09 22:19:17 -05:00

19 lines
405 B
PHP

<?php
/**
* Admin routes
*/
Route::get('/admin', function () {
return redirect('/admin/airlines');
});
Route::group([
'namespace' => 'Admin',
'middleware' => 'auth',
'prefix' => 'admin',
], function () {
Route::resource('airlines', 'AirlinesController');
Route::resource('aircraft', 'AircraftController');
Route::resource('aircraftclasses', 'AircraftClassController');
});