From 6c32f37e403e8161340a876e10c1b82324f6436b Mon Sep 17 00:00:00 2001 From: Olivier Legat Date: Sat, 19 Mar 2022 11:59:26 +0100 Subject: [PATCH] mandatory public routes --- CHANGELOG.md | 1 + routes/web-shop.php | 2 -- routes/web.php | 6 ++++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcab1b8..08786ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## 19-03-2022 +* legal RGPD routes always accessible * privatisable routes * quickorder route * quickorder route activated by theme settings diff --git a/routes/web-shop.php b/routes/web-shop.php index aee28a3..6dfcd38 100644 --- a/routes/web-shop.php +++ b/routes/web-shop.php @@ -13,9 +13,7 @@ use App\Http\Controllers\Bo\OrdersController; Route::get('/', [HomeController::class, 'index'])->name('home'); - Route::get('/mentions-legales', [IndexController::class, 'legalNotice'])->name('legal-notice'); Route::get('/cgv', [IndexController::class, 'terms'])->name('terms'); - Route::get('/politique-de-confidentialite', [IndexController::class, 'privacy'])->name('privacy'); Route::get('/faq', [IndexController::class, 'faq'])->name('faq'); //Route::get('/mon-panier', [BasketController::class, 'index'])->name('basket'); diff --git a/routes/web.php b/routes/web.php index 76db1cc..536bdc1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2,6 +2,7 @@ use Illuminate\Support\Facades\Route; // FRONT +use App\Http\Controllers\IndexController; use App\Http\Controllers\CustomerController; // BO use App\Http\Controllers\Bo\DashboardController; @@ -32,6 +33,11 @@ if ((bool) config('bosettings.private_shop')) { require_once __DIR__ . '/web-shop.php'; } +//must always be public routes +Route::get('/mentions-legales', [IndexController::class, 'legalNotice'])->name('legal-notice'); +Route::get('/politique-de-confidentialite', [IndexController::class, 'privacy'])->name('privacy'); + + Route::namespace('App\Http\Controllers\Bo') ->prefix('bo') ->name('bo.')