Skip to content

Commit

Permalink
add routes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Volio committed Apr 14, 2016
1 parent 2e5056f commit dba5c53
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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.
|
*/

//Route::get('/', function () {
// //
//});

/*
|--------------------------------------------------------------------------
| 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('/','ShowController@index')->name('index');
Route::get('/u/{id}','ShowController@show');
});

Route::group(['middleware' => ['web']], function () {
Route::auth();
Route::controller('account', 'AccountController');
});

0 comments on commit dba5c53

Please sign in to comment.