set the profile and pirep show as public

This commit is contained in:
Nabeel Shahzad
2017-08-10 10:36:55 -05:00
parent bf410c4f99
commit 1a532a9082
3 changed files with 18 additions and 8 deletions

View File

@@ -1,7 +1,16 @@
<?php
Route::get('/', 'HomeController@index');
Route::get('/home', 'HomeController@index');
/**
* User doesn't need to be logged in for these
*/
Route::group([
'namespace' => 'Frontend', 'prefix' => '', 'as' => 'frontend.'
], function() {
Route::get('/pireps/{id}', 'PirepController@show');
Route::get('/profile/{id}', 'ProfileController@show');
});
/**
* These are only visible to a logged in user
@@ -17,7 +26,6 @@ Route::group([
Route::match(['post'], 'flights/save', 'FlightController@save');
Route::resource('profile', 'ProfileController');
Route::resource('pireps', 'PirepController');
});