Files
core/app/Http/routes.php
T
Michal Kváček 4ab361adeb FEATURE #1358: prepare environment for login
Initialize routes, middleware and some basic controllers/view for further implementation.
2016-01-20 21:01:53 +01:00

37 lines
1.1 KiB
PHP

<?php
/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route::group(['middleware' => ['web']], function () {
Route::get('login', 'Admin\LoginForm@showLoginForm');
});
Route::group([
'middleware' => ['auth'],
'namespace' => 'Admin',
'prefix' => 'admin'
], function () {
Route::get('/', 'Dashboard@showIndex');
});