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