Raffales-LMS/routes/CRUDgenerated/route.sources.php

15 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-04-16 09:58:24 +00:00
<?php
use App\Http\Controllers\SourcesController;
use Illuminate\Support\Facades\Route;
Route::prefix("sources")->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');
});