14 lines
1.0 KiB
PHP
14 lines
1.0 KiB
PHP
<?php
|
|
use App\Http\Controllers\NewsController;
|
|
use Illuminate\Support\Facades\Route;
|
|
Route::prefix("backendnews")->group(function () {
|
|
Route::get('/', [NewsController::class, 'index'])->name('backendnews.index');
|
|
Route::get('/create', [NewsController::class, 'create'])->name('backendnews.create');
|
|
Route::post('/store', [NewsController::class, 'store'])->name('backendnews.store');
|
|
Route::post('/sort', [NewsController::class, 'sort'])->name('backendnews.sort');
|
|
Route::post('/updatealias', [NewsController::class, 'updatealias'])->name('backendnews.updatealias');
|
|
Route::get('/show/{id}', [NewsController::class, 'show'])->name('backendnews.show');
|
|
Route::get('/edit/{id}', [NewsController::class, 'edit'])->name('backendnews.edit') ;
|
|
Route::post('/update/{id}', [NewsController::class, 'update'])->name('backendnews.update');
|
|
Route::delete('/destroy/{id}', [NewsController::class, 'destroy'])->name('backendnews.destroy');
|
|
}); |