mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -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
|
| Authentication Routes
|
||||||
|
@ -61,3 +38,26 @@ Route::group([ 'prefix' => 'dashboard' ], function() {
|
||||||
Route::post('/reorder', 'DashboardController@postReorder');
|
Route::post('/reorder', 'DashboardController@postReorder');
|
||||||
Route::delete('/delete', 'DashboardController@deleteDelete');
|
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