From 95bbf5e6e07fbce6a1c27f3c7e5a6298af8ce0a4 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 29 May 2023 13:45:08 +0200 Subject: [PATCH] Merge with Breeze Routes --- routes/web.php | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/routes/web.php b/routes/web.php index f264290..44cae81 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,6 @@ 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('/', function () { - return view('main_menu'); + return view('welcome'); + # return view('main_menu'); }); +Route::get('/dashboard', function () { + return view('dashboard'); +})->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'; -// Mods -//Route::resource('', Mod) +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');