mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 23:52:31 -05:00
Fix dashboard and authentication by moving the public routes to the bottom
This commit is contained in:
parent
b3e2a398c3
commit
d25acd9027
1 changed files with 23 additions and 23 deletions
|
@ -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\.-]*');
|
||||
|
|
Loading…
Reference in a new issue