ldc-ovoteam/routes/web-front.php

49 lines
1.6 KiB
PHP
Raw Permalink Normal View History

2026-03-16 12:36:44 +01:00
<?php
declare(strict_types=1);
use App\Http\Controllers\Front\ProductController;
use App\Http\Controllers\Front\RecipeController;
2026-03-16 12:36:44 +01:00
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
2026-03-16 12:36:44 +01:00
2026-04-08 13:59:30 +02:00
Route::get('/nos-engagements', function () {
return Inertia::render('front/Pages/Commitment');
})->name('engage');
2026-04-08 13:59:30 +02:00
Route::get('/nos-engagements/fabrique-en-france', function () {
return Inertia::render('front/Pages/MadeInFrance');
})->name('made-in-france');
Route::get('/nos-engagements/exhausteur-de-papilles', function () {
return Inertia::render('front/Pages/Expertise');
})->name('expertise');
Route::get('/nos-engagements/large-gamme-100-alternative', function () {
return Inertia::render('front/Pages/Gamme');
})->name('gamme');
2026-04-08 13:59:30 +02:00
Route::get('/nous-contacter', function () {
return Inertia::render('front/Pages/Contact/ContactUs');
})->name('contact-us');
2026-04-15 09:31:43 +02:00
Route::get('/rechercher', function () {
return Inertia::render('front/Pages/Search');
})->name('search');
Route::name('products.')->prefix('produits')->group(function () {
Route::get('/', [ProductController::class, 'index'])->name('index');
Route::get('/{frontProduct}', [ProductController::class, 'show'])->name('show');
});
Route::name('recipes.')->prefix('recettes')->group(function () {
Route::get('/', [RecipeController::class, 'index'])->name('index');
Route::get('/{frontRecipe}', [RecipeController::class, 'show'])->name('show');
});
if (! app()->isProduction()) {
Route::get('/demo', function () {
return Inertia::render('front/Pages/Demo');
})->name('demo');
}