Do the search

This commit is contained in:
2024-06-22 16:54:14 +01:00
parent fadb1bc00a
commit 01002b31a7
10 changed files with 262 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
<?php
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\SearchController;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
@@ -14,9 +16,10 @@ Route::get('/', function () {
]);
});
Route::get('/dashboard', function () {
return Inertia::render('Dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
Route::get('/dashboard', [DashboardController::class, 'index'])->middleware(['auth', 'verified'])->name('dashboard');
Route::post('/search/recipes', [SearchController::class, 'recipes'])
->middleware(['auth', 'verified'])
->name('search.recipes');
Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');