middleware(['auth', 'verified'])->name('dashboard'); Route::middleware('auth')->group(function () { Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); }); require __DIR__.'/auth.php'; Route::get('/games', [GamesController::class, 'index'])->name('games.index'); Route::get('/games/show/{slug}',[GamesController::class, 'show'])->name('games.show'); Route::get('/games/link', [GamesController::class, 'create'])->name('games.create'); Route::post('/games/link', [GamesController::class, 'store'])->name('games.store'); Route::get('/achievements', [AchievementController::class, 'showAchievements']); Route::post('/achievements', [AchievementController::class, 'getAchievements']);