From 6fabbe8708118281fb28fd7717a24d99778cc885 Mon Sep 17 00:00:00 2001 From: marszayn Date: Tue, 4 Mar 2025 14:23:56 +0700 Subject: [PATCH] feat: Tambahkan HistoryPerusahaanController pada routes web --- routes/web.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/routes/web.php b/routes/web.php index 2814fcf..1bb84aa 100644 --- a/routes/web.php +++ b/routes/web.php @@ -3,6 +3,7 @@ use App\Http\Controllers\CategoryController; use App\Http\Controllers\DaftarPerusahaanController; use App\Http\Controllers\HistoryKegiatanController; +use App\Http\Controllers\HistoryPerusahaanController; use App\Http\Controllers\HomeController; use App\Http\Controllers\HukumController; use App\Http\Controllers\JenisDokILController; @@ -161,6 +162,15 @@ Route::middleware(['auth'])->prefix('admin')->group(function () { Route::delete('/hukum/{hukum}', [HukumController::class, 'destroy'])->name('admin.hukum.destroy'); }); +Route::middleware(['auth'])->prefix('admin')->group(function () { + Route::get('/history_perusahaan', [HistoryPerusahaanController::class, 'index'])->name('admin.history_perusahaan.index'); + Route::get('/history_perusahaan/add', [HistoryPerusahaanController::class, 'create'])->name('admin.history_perusahaan.create'); + Route::post('/history_perusahaan', [HistoryPerusahaanController::class, 'store'])->name('admin.history_perusahaan.store'); + Route::get('/history_perusahaan/{history_perusahaan}', [HistoryPerusahaanController::class, 'edit'])->name('admin.history_perusahaan.edit'); + Route::post('/history_perusahaan/{history_perusahaan}', [HistoryPerusahaanController::class, 'update'])->name('admin.history_perusahaan.update'); + Route::delete('/history_perusahaan/{history_perusahaan}', [HistoryPerusahaanController::class, 'destroy'])->name('admin.history_perusahaan.destroy'); +}); + Route::middleware(['auth'])->prefix('admin')->group(function () { Route::get('/post', [PostController::class, 'index'])->name('admin.post.index'); Route::get('/post/add', [PostController::class, 'create'])->name('admin.post.create');