|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -use App\Http\Controllers\Settings\PasswordController; |
4 |
| -use App\Http\Controllers\Settings\ProfileController; |
5 | 3 | use Illuminate\Foundation\Application;
|
6 | 4 | use Illuminate\Support\Facades\Route;
|
7 | 5 | use Inertia\Inertia;
|
|
15 | 13 | ]);
|
16 | 14 | })->name('home');
|
17 | 15 |
|
18 |
| -Route::get('dashboard', function () { |
19 |
| - return Inertia::render('dashboard'); |
20 |
| -})->middleware(['auth', 'verified'])->name('dashboard'); |
21 |
| - |
22 |
| -Route::middleware('auth')->group(function () { |
23 |
| - Route::redirect('settings', 'settings/profile'); |
24 |
| - |
25 |
| - Route::get('settings/profile', [ProfileController::class, 'edit'])->name('profile.edit'); |
26 |
| - Route::patch('settings/profile', [ProfileController::class, 'update'])->name('profile.update'); |
27 |
| - Route::delete('settings/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); |
28 |
| - |
29 |
| - Route::get('settings/password', [PasswordController::class, 'edit'])->name('password.edit'); |
30 |
| - Route::put('settings/password', [PasswordController::class, 'update'])->name('password.update'); |
31 |
| - |
32 |
| - Route::get('settings/appearance', function () { |
33 |
| - return Inertia::render('settings/appearance'); |
34 |
| - })->name('appearance'); |
| 16 | +Route::middleware(['auth'])->group(function () { |
| 17 | + Route::get('dashboard', function () { |
| 18 | + return Inertia::render('dashboard'); |
| 19 | + })->name('dashboard'); |
35 | 20 | });
|
36 | 21 |
|
| 22 | +require __DIR__.'/settings.php'; |
37 | 23 | require __DIR__.'/auth.php';
|
0 commit comments