31 lines
1.4 KiB
PHP
31 lines
1.4 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\Fo\HomeController;
|
|
use App\Http\Controllers\Fo\ProductController;
|
|
use App\Http\Controllers\Fo\StaticPageController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware(['throttle:credentials'])
|
|
->name('fo.')
|
|
->group(function () {
|
|
// * Dev route only
|
|
if (app()->environment('local', 'staging')) {
|
|
Route::view('/bs-demo', 'fo.pages.bs-demo')->name('bs-demo');
|
|
Route::view('/partials-demo', 'fo.pages.partials-demo')->name('partials-demo');
|
|
}
|
|
|
|
// * STATIC PAGES
|
|
Route::get('/', [HomeController::class, 'index'])->name('home.show');
|
|
Route::post(
|
|
'/accueil/produits-par-gamme/{range_slug}',
|
|
[ProductController::class, 'jsonGetProductsViewsByRange']
|
|
)->name('home.products');
|
|
Route::get('/recrutement', [StaticPageController::class, 'recruitment'])->name('recruitment.show');
|
|
Route::get('/mentions-legales', [StaticPageController::class, 'legals'])->name('legals.show');
|
|
Route::get('/charte-de-confidentialite', [StaticPageController::class, 'policies'])->name('policies.show');
|
|
Route::get('/contact', [StaticPageController::class, 'contact'])->name('contact.show');
|
|
Route::get('/qui-sommes-nous', [StaticPageController::class, 'story'])->name('story.show');
|
|
|
|
// * NEWSLETTER
|
|
Route::post('/optin', [HomeController::class, 'addOptIn'])->name('add-single-optin');
|
|
});
|