diff --git a/routes/modules/modules.php b/routes/modules/modules.php index 8ba8413..68df547 100644 --- a/routes/modules/modules.php +++ b/routes/modules/modules.php @@ -302,7 +302,7 @@ Route::name('management.')->prefix('management')->group(function () { Route::resource('kotoran-ternak', LivestockManureController::class)->names('kotoran-ternak'); Route::put('kotoran_ternak/{id}/setAktif', [LivestockManureController::class, 'setAktif'])->name('kotoran-ternak.setAktif'); }); - Route::get('{sector}/{code}/update', [FormController::class, 'update'])->name('form.update'); + Route::prefix('{sector}/{code}')->group(function () { Route::get('/', [FormController::class, 'show'])->name('form.show'); @@ -317,7 +317,7 @@ Route::name('management.')->prefix('management')->group(function () { Route::post('unlock/{id}', [FormController::class, 'unlock'])->name('form.unlock'); Route::post('copy', [FormController::class, 'copyData'])->name('form.copy'); - Route::post('{inventoryYear}/{instansi?}', [FormController::class, 'approvalKonsolidasi'])->name('form.approval'); + Route::post('{inventoryYear}/{instansi?}', [FormController::class, 'approvalKonsolidasi'])->name('form.approval'); + }); - - }); \ No newline at end of file + Route::get('{sector}/{code}/update', [FormController::class, 'update'])->name('form.update'); \ No newline at end of file