37 lines
1.9 KiB
PHP
37 lines
1.9 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\Fo\NetworkController;
|
|
use App\Http\Controllers\Fo\StaticPageController;
|
|
use App\Http\Controllers\Fo\NewsController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware(['throttle:web'])->name('fo.')->group(function () {
|
|
// * Dev route only
|
|
if (app()->environment() === 'local') {
|
|
Route::view('bs-demo', 'fo.pages.bs-demo')->name('bs-demo');
|
|
}
|
|
|
|
// * PAGES
|
|
Route::get('/', [StaticPageController::class, 'show'])->name('home.show');
|
|
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');
|
|
Route::get('/sites/{site:slug}', [StaticPageController::class, 'site'])->name('sites.show');
|
|
Route::get('/on-bouge', [NewsController::class, 'index'])->name('news.index');
|
|
Route::get('/on-bouge/{publishedNews:slug}', [NewsController::class, 'show'])->name('news.show');
|
|
Route::get('/on-embauche', [StaticPageController::class, 'hire'])->name('hire.show');
|
|
Route::get('/on-produit', [StaticPageController::class, 'produce'])->name('produce.show');
|
|
Route::get('/nos-reseaux/{publishedNetwork:slug}', [NetworkController::class, 'show'])->name('networks.show');
|
|
|
|
// * RGPD
|
|
Route::get('/mentions-legales', [StaticPageController::class, 'legals'])->name('legals');
|
|
Route::get('/charte-de-confidentialite', [StaticPageController::class, 'confidentiality'])->name('confidentiality');
|
|
|
|
Route::post('/on-vous-ecoute-formulaire', [StaticPageController::class, 'listenForm'])
|
|
->middleware(['throttle:credentials'])
|
|
->name('listen.send');
|
|
|
|
// * Iframe cookies
|
|
Route::get('/frame/{frame}', fn (string $frame) => view('fo.modules.frame', ['frame' => $frame]))
|
|
->where('frame', '[a-z]+')->name('frame');
|
|
});
|