fix: avoid sharing route to JSON data to offers

No paths leads there, and there are no reason to keep this route.
This commit is contained in:
Valentin Lab
2025-12-13 22:02:46 +01:00
parent 2fc091d754
commit d9ae84310d

View File

@@ -1,5 +1,8 @@
<?php
Route::prefix('Offres')->name('Offers.')->group(function () {
Route::get('show/{id}', 'OfferController@show')->name('show');
// Public offer pages are not exposed; keep the route returning 404 to avoid leaking data.
Route::get('show/{id}', function () {
abort(404);
})->name('show');
});