New-OMIS/routes/CRUDgenerated/route.programs.php

21 lines
1.4 KiB
PHP
Raw Normal View History

2024-04-05 05:22:15 +00:00
<?php
use App\Http\Controllers\ProgramsController;
use Illuminate\Support\Facades\Route;
Route::prefix("programs")->group(function () {
Route::get('/', [ProgramsController::class, 'index'])->name('programs.index');
Route::get('/list', [ProgramsController::class, 'list'])->name('programs.list');
Route::get('/create', [ProgramsController::class, 'create'])->name('programs.create');
Route::post('/store', [ProgramsController::class, 'store'])->name('programs.store');
Route::post('/sort', [ProgramsController::class, 'sort'])->name('programs.sort');
Route::post('/updatealias', [ProgramsController::class, 'updatealias'])->name('programs.updatealias');
Route::get('/show/{id}', [ProgramsController::class, 'show'])->name('programs.show');
Route::get('/fetch/byinstitution', [ProgramsController::class, 'fetchbyinstitution'])->name('programs.fetchbyinstitution');
Route::get('/edit/{id}', [ProgramsController::class, 'edit'])->name('programs.edit');
Route::post('/update/{id}', [ProgramsController::class, 'update'])->name('programs.update');
Route::delete('/destroy/{id}', [ProgramsController::class, 'destroy'])->name('programs.destroy');
Route::get('/toggle/{id}', [ProgramsController::class, 'toggle'])->name('programs.toggle');
Route::get('/clone/{id}', [ProgramsController::class, 'cloneEntry'])->name('programs.clone');
});