Files
core/app/Http/routes.php
T
Michal Kváček cacad9a8f9 FEATURE: add somehow final login form.
Currently, this form does not point to any existing (resp. working) methods for authentication. For this purpose I need to develop some functionality to add user and have some data for testing.
2016-01-20 23:29:00 +01:00

43 lines
1.2 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', function () {
return view('admin.loginForm.form');
});
// POST methods
Route::post('admin/login', 'Admin\Login@postLogin')
->name('login');
});
// list of admin routes
Route::group([
'middleware' => ['auth'],
'namespace' => 'Admin',
'prefix' => 'admin'
], function () {
Route::get('/', 'Dashboard@getIndex');
});