Fix dashboard and authentication by moving the public routes to the bottom

This commit is contained in:
Kevin MacMartin 2018-01-09 21:57:43 -05:00
parent b3e2a398c3
commit d25acd9027

View file

@ -13,29 +13,6 @@ use App\Utilities\Language;
|
*/
/*
|--------------------------------------------------------------------------
| Public Routes
|--------------------------------------------------------------------------
*/
Route::get('/language/{lang}', function($lang) {
Language::setSessionLanguage($lang);
return redirect()->back();
});
// Route::get('/', function() {
// return view('pages.index');
// });
//
// Route::get('/contact', function() {
// return view('pages.contact');
// });
Route::get('/{vue?}', function() {
return view('templates.public-vue');
})->where('vue', '[\/\w\.-]*');
/*
|--------------------------------------------------------------------------
| Authentication Routes
@ -61,3 +38,26 @@ Route::group([ 'prefix' => 'dashboard' ], function() {
Route::post('/reorder', 'DashboardController@postReorder');
Route::delete('/delete', 'DashboardController@deleteDelete');
});
/*
|--------------------------------------------------------------------------
| Public Routes
|--------------------------------------------------------------------------
*/
Route::get('/language/{lang}', function($lang) {
Language::setSessionLanguage($lang);
return redirect()->back();
});
// Route::get('/', function() {
// return view('pages.index');
// });
//
// Route::get('/contact', function() {
// return view('pages.contact');
// });
Route::get('/{vue?}', function() {
return view('templates.public-vue');
})->where('vue', '[\/\w\.-]*');