<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|
| Here is where you can register all of the routes for 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.
*/
Route::get('/', 'GameController@index');
Route::group(['middleware' => 'guest'], function ()
{
Route::get('login', 'LoginController@index');
Route::post('login', 'LoginController@authenticate');
Route::get('oublie', 'LoginController@forgottenPassword');
Route::post('oublie', 'LoginController@initPassword');
});
Route::group(['middleware' => 'auth'], function ()
Route::get('referent', 'ReferentController@index');
Route::get('logout', 'LoginController@logout');
Route::group(['middleware' => 'admin'], function ()
Route::get('admin', 'AdminController@index');