Skip to content

Commit 9c02b89

Browse files
committed
Update web.php
1 parent a3c7177 commit 9c02b89

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

routes/web.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
<?php
22

33
use App\Http\Controllers\PuppyController;
4-
use App\Models\Puppy;
5-
use App\Http\Resources\PuppyResource;
64
use Illuminate\Support\Facades\Route;
75
use Inertia\Inertia;
8-
use Laravel\Fortify\Features;
96

10-
Route::get('/', [PuppyController::class, 'index'])->name('home');
11-
// Route::get('/', function () {
12-
// return Inertia::render('welcome', [
13-
// 'canRegister' => Features::enabled(Features::registration()),
14-
// 'puppies' => PuppyResource::collection(Puppy::get()->load(['user', 'likedBy'])),
15-
// ]);
16-
// })->name('home');
7+
Route::get('/', [PuppyController::class, 'index'])->name('puppy.index');
178

9+
// AUTH PROTECTED ROUTES
1810
Route::middleware(['auth', 'verified'])->group(function () {
19-
2011
// Update Liked Puppy
2112
Route::patch('puppies/{puppy}/like', [PuppyController::class, 'like'])->name('puppies.like');
2213

0 commit comments

Comments
 (0)