ldc-volena/routes/web-fo.php

38 lines
1.9 KiB
PHP
Raw Permalink Normal View History

2023-11-13 11:56:06 +01:00
<?php
use App\Http\Controllers\Fo\NetworkController;
2024-02-27 13:59:16 +01:00
use App\Http\Controllers\Fo\StaticPageController;
2024-02-28 08:58:17 +01:00
use App\Http\Controllers\Fo\NewsController;
2023-11-13 11:56:06 +01:00
use Illuminate\Support\Facades\Route;
Route::middleware(['throttle:web'])->name('fo.')->group(function () {
2024-02-16 11:35:43 +01:00
// * Dev route only
if (app()->environment() === 'local') {
Route::view('bs-demo', 'fo.pages.bs-demo')->name('bs-demo');
}
2024-03-14 10:09:22 +01:00
// * PAGES
2024-03-20 17:39:24 +01:00
Route::get('/', [StaticPageController::class, 'show'])->name('home.show');
2024-03-14 10:09:22 +01:00
Route::get('/on-se-devoile', [StaticPageController::class, 'unveil'])->name('unveil.show');
Route::get('/on-sengage', [StaticPageController::class, 'commit'])->name('commit.show');
Route::get('/on-vous-ecoute', [StaticPageController::class, 'listen'])->name('listen.show');
2024-03-18 16:10:01 +01:00
Route::get('/sites/{site:slug}', [StaticPageController::class, 'site'])->name('sites.show');
2024-02-28 08:58:17 +01:00
Route::get('/on-bouge', [NewsController::class, 'index'])->name('news.index');
Route::get('/on-bouge/{publishedNews:slug}', [NewsController::class, 'show'])->name('news.show');
2024-03-18 16:10:01 +01:00
Route::get('/on-embauche', [StaticPageController::class, 'hire'])->name('hire.show');
2024-03-14 10:09:22 +01:00
Route::get('/on-produit', [StaticPageController::class, 'produce'])->name('produce.show');
Route::get('/nos-reseaux/{publishedNetwork:slug}', [NetworkController::class, 'show'])->name('networks.show');
2024-03-14 10:09:22 +01:00
// * RGPD
2024-03-20 17:39:24 +01:00
Route::get('/mentions-legales', [StaticPageController::class, 'legals'])->name('legals');
Route::get('/charte-de-confidentialite', [StaticPageController::class, 'confidentiality'])->name('confidentiality');
2024-02-27 13:59:16 +01:00
Route::post('/on-vous-ecoute-formulaire', [StaticPageController::class, 'listenForm'])
->middleware(['throttle:credentials'])
->name('listen.send');
2024-03-11 15:07:25 +01:00
2024-02-27 13:59:16 +01:00
// * Iframe cookies
2024-03-19 12:36:03 +01:00
Route::get('/frame/{frame}', fn (string $frame) => view('fo.modules.frame', ['frame' => $frame]))
->where('frame', '[a-z]+')->name('frame');
2024-02-16 11:35:43 +01:00
});