From d25acd90277802218fa37f460a6e0a1cf6f17eb7 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 9 Jan 2018 21:57:43 -0500 Subject: [PATCH] Fix dashboard and authentication by moving the public routes to the bottom --- routes/web.php | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/routes/web.php b/routes/web.php index b0c5d65..803d325 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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\.-]*');