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:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user