group(function () { Route::get('/', [DagsController::class, 'index'])->name('dags.index'); Route::get('/create', [DagsController::class, 'create'])->name('dags.create'); Route::post('/store', [DagsController::class, 'store'])->name('dags.store'); Route::post('/sort', [DagsController::class, 'sort'])->name('dags.sort'); Route::post('/updatealias', [DagsController::class, 'updatealias'])->name('dags.updatealias'); Route::get('/show/{id}', [DagsController::class, 'show'])->name('dags.show'); Route::get('/edit/{id}', [DagsController::class, 'edit'])->name('dags.edit') ; Route::post('/update/{id}', [DagsController::class, 'update'])->name('dags.update'); Route::get('/destroy/{id}', [DagsController::class, 'destroy'])->name('dags.destroy'); Route::get('/toggle/{id}', [DagsController::class, 'toggle'])->name('dags.toggle'); Route::get('/clone/{id}', [DagsController::class, 'clone'])->name('dags.clone'); });