Fix Routes

This commit is contained in:
Jan_Hill 2024-12-19 07:05:02 +01:00
parent eb4f197823
commit dc04959a56
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="PublishConfigData" autoUpload="On explicit save action" serverName="ncore.smart_firewall" autoUploadExternalChanges="true"> <component name="PublishConfigData" autoUpload="On explicit save action" serverName="ncore.smart_firewall" confirmBeforeUploading="false" autoUploadExternalChanges="true">
<option name="confirmBeforeUploading" value="false" />
<serverData> <serverData>
<paths name="edm-maker.com"> <paths name="edm-maker.com">
<serverdata> <serverdata>

View File

@ -0,0 +1 @@

View File

@ -10,10 +10,10 @@ Route::get('/', function () {
Route::Group(['prefix' => 'cp', 'middleware' => 'web'], function () { Route::Group(['prefix' => 'cp', 'middleware' => 'web'], function () {
Route::get('/', function (\Illuminate\Http\Request $request) { Route::get('/', function (\Illuminate\Http\Request $request) {
if (!Auth::check()) { if (!Auth::check()) {
return redirect('auth'); return redirect()->route('auth');
} else { } else {
return redirect('dashboard'); return redirect()->route('dashboard');
} }
}); });
Route::get('auth',[\App\Http\Controllers\SmartController::class, 'index']); Route::get('auth/',[\App\Http\Controllers\SmartController::class, 'index'])->name('auth');
}); });