ldc-volena/routes/web-fo.php
2024-03-11 18:01:58 +01:00

29 lines
1.3 KiB
PHP

<?php
use App\Http\Controllers\Fo\SiteController;
use App\Http\Controllers\Fo\HomeController;
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') {
Route::view('bs-demo', 'fo.pages.bs-demo')->name('bs-demo');
}
Route::get('/', [HomeController::class, 'index'])->name('homepage');
Route::get('/on-se-devoile', [StaticPageController::class, 'unveil'])->name('unveil');
Route::get('/on-sengage', [StaticPageController::class, 'commit'])->name('commit');
Route::get('/on-vous-ecoute', [StaticPageController::class, 'listen'])->name('listen');
Route::get('/mentions-legales', [StaticPageController::class, 'listen'])->name('legals');
Route::get('/charte-de-confidentialite', [StaticPageController::class, 'listen'])->name('confidentiality');
Route::get('/sites/{site:slug}', [SiteController::class, 'show'])->name('sites.show');
Route::post('/on-vous-ecoute-formulaire', [StaticPageController::class, 'listenForm'])->name('listen.send');
// * Iframe cookies
Route::get('/frame/{frame}', function (string $frame) {
return view('fo.modules.frame', ['frame' => $frame]);
})
->where('frame', '[a-z]+')->name('frame');
});