Check public pages for authorization #761

This commit is contained in:
Nabeel S
2020-07-10 13:11:38 -04:00
committed by GitHub
parent 3e2b1fe42b
commit 64e4c91e7e
4 changed files with 55 additions and 3 deletions

View File

@@ -60,8 +60,6 @@ class RouteServiceProvider extends ServiceProvider
Route::get('flights/search', 'FlightController@search')->name('flights.search');
Route::resource('flights', 'FlightController');
Route::get('p/{slug}', 'PageController@show')->name('pages.show');
Route::get('pireps/fares', 'PirepController@fares');
Route::post('pireps/{id}/submit', 'PirepController@submit')->name('pireps.submit');
@@ -95,7 +93,10 @@ class RouteServiceProvider extends ServiceProvider
Route::get('users/{id}', 'ProfileController@show')->name('users.show.public');
Route::get('pilots/{id}', 'ProfileController@show')->name('pilots.show.public');
Route::get('p/{id}', 'ProfileController@show')->name('profile.show.public');
Route::get('page/{slug}', 'PageController@show')->name('pages.show');
Route::get('profile/{id}', 'ProfileController@show')->name('profile.show.public');
Route::get('users', 'UserController@index')->name('users.index');
Route::get('pilots', 'UserController@index')->name('pilots.index');