34 lines
715 B
PHP
Executable File
34 lines
715 B
PHP
Executable File
<?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');
|
|
|
|
|
|
//Auth::routes();
|
|
|
|
/**
|
|
* Admin routes
|
|
*/
|
|
Route::group([
|
|
'namespace' => 'Admin',
|
|
'middleware' => 'auth',
|
|
'prefix' => 'admin',
|
|
], function () {
|
|
Route::resource('airlines', 'AirlinesController');
|
|
});
|