2017-06-10 03:47:02 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Admin routes
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/admin', function () {
|
|
|
|
return redirect('/admin/airlines');
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::group([
|
|
|
|
'namespace' => 'Admin',
|
2017-06-10 04:07:29 +08:00
|
|
|
'middleware' => 'auth',
|
2017-06-10 03:47:02 +08:00
|
|
|
'prefix' => 'admin',
|
|
|
|
], function () {
|
|
|
|
Route::resource('airlines', 'AirlinesController');
|
|
|
|
Route::resource('aircraft', 'AircraftController');
|
2017-06-10 11:19:17 +08:00
|
|
|
Route::resource('aircraftclasses', 'AircraftClassController');
|
2017-06-10 03:47:02 +08:00
|
|
|
});
|