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