create middleware and use in route v3 and ignor one option in v2 route

This commit is contained in:
2025-05-25 15:39:40 +03:30
parent 94d60fae7e
commit 38ce1d760c
4 changed files with 39 additions and 2 deletions

View File

@@ -303,6 +303,9 @@ Route::get('map', function () {
return view('version2.dashboard_pages.map');
})->name('v2.map');
Route::any('/safety_and_privacy/{any?}', fn() => abort(404, 'not found'))
->where('any', '.*');
Route::prefix('safety_and_privacy')->group(function () {
Route::get('/sub_item_list', 'V2\Dashboard\SafetyAndPrivacyController@subItemList');