2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This file is where you may define all of the routes that are handled
|
|
|
|
| by your application. Just tell Laravel the URIs it should respond
|
|
|
|
| to using a Closure or controller method. Build something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
|
|
|
return redirect('home');
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
Route::get('/home', 'HomeController@index');
|
2017-06-09 09:02:52 +08:00
|
|
|
|
|
|
|
|
|
|
|
//Auth::routes();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Admin routes
|
|
|
|
*/
|
|
|
|
Route::group([
|
|
|
|
'namespace' => 'Admin',
|
|
|
|
'middleware' => 'auth',
|
|
|
|
'prefix' => 'admin',
|
|
|
|
], function () {
|
|
|
|
Route::resource('airlines', 'AirlinesController');
|
|
|
|
});
|