Merge with Breeze Routes

main
Alex 2 years ago
parent 34ee07410e
commit 95bbf5e6e0

@ -1,5 +1,6 @@
<?php
use App\Http\Controllers\ProfileController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\GamesController;
use App\Http\Controllers\IGDBController;
@ -14,17 +15,26 @@ use App\Http\Controllers\IGDBController;
| be assigned to the "web" middleware group. Make something great!
|
*/
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('/', 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');

Loading…
Cancel
Save