New-OMIS/routes/CRUDgenerated/route.documentsets.php
2024-04-05 11:07:15 +05:45

17 lines
1.5 KiB
PHP

<?php
use App\Http\Controllers\DocumentsetsController;
use Illuminate\Support\Facades\Route;
Route::prefix("documentsets")->group(function () {
Route::get('/', [DocumentsetsController::class, 'index'])->name('documentsets.index');
Route::get('/fetchdocuments', [DocumentsetsController::class, 'fetchdocuments'])->name('documentsets.fetchdocuments');
Route::get('/create', [DocumentsetsController::class, 'create'])->name('documentsets.create');
Route::post('/store', [DocumentsetsController::class, 'store'])->name('documentsets.store');
Route::post('/sort', [DocumentsetsController::class, 'sort'])->name('documentsets.sort');
Route::post('/updatealias', [DocumentsetsController::class, 'updatealias'])->name('documentsets.updatealias');
Route::get('/show/{id}', [DocumentsetsController::class, 'show'])->name('documentsets.show');
Route::get('/edit/{id}', [DocumentsetsController::class, 'edit'])->name('documentsets.edit') ;
Route::post('/update/{id}', [DocumentsetsController::class, 'update'])->name('documentsets.update');
Route::delete('/destroy/{id}', [DocumentsetsController::class, 'destroy'])->name('documentsets.destroy');
Route::get('/toggle/{id}', [DocumentsetsController::class, 'toggle'])->name('documentsets.toggle');
Route::get('/clone/{id}', [DocumentsetsController::class, 'clone'])->name('documentsets.clone');
});