48 lines
1.5 KiB
PHP
48 lines
1.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Http\Controllers\Front\ProductController;
|
|
use App\Http\Controllers\Front\RecipeController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Inertia\Inertia;
|
|
|
|
Route::get('/nos-engagements', function () {
|
|
return Inertia::render('front/Pages/Commitment');
|
|
})->name('engage');
|
|
|
|
Route::get('/nos-engagements/fabrique-en-france', function () {
|
|
return Inertia::render('front/Pages/MadeInFrance');
|
|
})->name('made-in-france');
|
|
|
|
Route::get('/nos-engagements/expertise-depuis-1963', function () {
|
|
return Inertia::render('front/Pages/Expertise');
|
|
})->name('expertise');
|
|
|
|
Route::get('/nos-engagements/large-gamme-plein-air', function () {
|
|
return Inertia::render('front/Pages/Gamme');
|
|
})->name('gamme');
|
|
|
|
Route::get('/nous-contacter', function () {
|
|
return Inertia::render('front/Pages/Contact/ContactUs');
|
|
})->name('contact-us');
|
|
|
|
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('/{product}', [ProductController::class, 'show'])->name('show');
|
|
});
|
|
|
|
Route::name('recipes.')->prefix('recettes')->group(function () {
|
|
Route::get('/', [RecipeController::class, 'index'])->name('index');
|
|
Route::get('/{recipe}', [RecipeController::class, 'show'])->name('show');
|
|
});
|
|
|
|
if (! app()->isProduction()) {
|
|
Route::get('/demo', function () {
|
|
return Inertia::render('front/Pages/Demo');
|
|
})->name('demo');
|
|
}
|