From 6521ad691ddbe957260fc7deacf5ac3bab79f9ba Mon Sep 17 00:00:00 2001 From: amirghasempoor Date: Sat, 31 May 2025 11:11:30 +0330 Subject: [PATCH] fix the routes --- routes/v3.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/v3.php b/routes/v3.php index 3d47f03a..6fc3ec01 100644 --- a/routes/v3.php +++ b/routes/v3.php @@ -293,8 +293,8 @@ Route::prefix('receipt_reports') Route::prefix('road_observations') ->name('roadObservations.') ->group(function () { - Route::controller(\App\Http\Controllers\V3\Dashboard\RoadObservation\OperatorController::class)->get('/{roadObserved}', 'show')->name('show'); Route::name('operator.') + ->prefix('operator') ->controller(\App\Http\Controllers\V3\Dashboard\RoadObservation\OperatorController::class) ->group(function () { Route::get('/cartable','cartableIndex')->name('cartableIndex')->middleware('permission:show-fast-react-edarate-shahri'); @@ -319,6 +319,7 @@ Route::prefix('road_observations') }); Route::name('supervisor.') + ->prefix('supervisor') ->controller(\App\Http\Controllers\V3\Dashboard\RoadObservation\SupervisorController::class) ->group(function () { Route::get('/index', 'index')->name('index')->middleware('permission:show-fast-react-province|show-fast-react'); @@ -328,12 +329,14 @@ Route::prefix('road_observations') }); Route::name('report.') + ->prefix('report') ->controller(\App\Http\Controllers\V3\Dashboard\RoadObservation\ReportController::class) ->group(function () { Route::get('/index', 'index')->name('index')->middleware('permission:show-fast-react-province|show-fast-react'); Route::get('/excel', 'excel')->name('excel')->middleware('permission:show-fast-react-province|show-fast-react'); Route::get('/map', 'map')->name('map'); }); + Route::get('/{roadObserved}', [\App\Http\Controllers\V3\Dashboard\RoadObservation\OperatorController::class, 'show'])->name('show'); }); Route::prefix('log_list')