diff --git a/routes/admin.php b/routes/admin.php index 79e96d9..c112d26 100644 --- a/routes/admin.php +++ b/routes/admin.php @@ -1,6 +1,7 @@ name('admin.')->group(function () { Route::middleware('auth:admin')->group(function () { Route::get('dashboard', [DashboardController::class, 'index'])->name('dashboard.index'); + + Route::prefix('admins')->name('admins.')->controller(AdminController::class)->group(function () { + + Route::get('/', 'index')->name('index'); + + Route::get('create', 'create')->name('create'); + Route::post('store', 'store')->name('store'); + + Route::prefix('{admin}')->group(function () { + + Route::get('edit', 'edit')->name('edit'); + Route::put('update', 'update')->name('update'); + + Route::delete('destroy', 'destroy')->name('destroy'); + }); + + }); }); });