2017-06-10 03:47:02 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Admin routes
|
|
|
|
*/
|
|
|
|
|
2017-06-12 00:36:16 +08:00
|
|
|
/*Route::get('/admin', [
|
2017-06-11 09:27:24 +08:00
|
|
|
'middleware' => ['role:admin'],
|
2017-06-12 00:36:16 +08:00
|
|
|
'uses' => 'Http\Controllers\Admin\DashboardController@index'
|
2017-06-11 09:27:24 +08:00
|
|
|
]);
|
2017-06-10 03:47:02 +08:00
|
|
|
|
|
|
|
Route::group([
|
2017-06-12 00:36:16 +08:00
|
|
|
'namespace' => 'Http\Controllers\Admin',
|
|
|
|
//'middleware' => ['role:admin'],
|
2017-06-10 03:47:02 +08:00
|
|
|
'prefix' => 'admin',
|
|
|
|
], function () {
|
2017-06-12 00:36:16 +08:00
|
|
|
Route::resource('airports', 'AirportController');
|
2017-06-10 03:47:02 +08:00
|
|
|
Route::resource('airlines', 'AirlinesController');
|
|
|
|
Route::resource('aircraft', 'AircraftController');
|
2017-06-10 11:19:17 +08:00
|
|
|
Route::resource('aircraftclasses', 'AircraftClassController');
|
2017-06-11 09:27:24 +08:00
|
|
|
Route::resource('fares', 'FareController');
|
2017-06-12 00:36:16 +08:00
|
|
|
});*/
|