21 lines
1.4 KiB
PHP
21 lines
1.4 KiB
PHP
|
<?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');
|
||
|
});
|