TanchoToplineCargo/routes/route.shortcodes.php

14 lines
1.1 KiB
PHP
Raw Normal View History

2024-05-05 04:47:49 +00:00
<?php
use App\Http\Controllers\ShortcodesController;
use Illuminate\Support\Facades\Route;
Route::prefix("shortcodes")->group(function () {
Route::get('/', [ShortcodesController::class, 'index'])->name('shortcodes.index');
Route::get('/create', [ShortcodesController::class, 'create'])->name('shortcodes.create');
Route::post('/store', [ShortcodesController::class, 'store'])->name('shortcodes.store');
Route::post('/sort', [ShortcodesController::class, 'sort'])->name('shortcodes.sort');
Route::post('/updatealias', [ShortcodesController::class, 'updatealias'])->name('shortcodes.updatealias');
Route::get('/show/{id}', [ShortcodesController::class, 'show'])->name('shortcodes.show');
Route::get('/edit/{id}', [ShortcodesController::class, 'edit'])->name('shortcodes.edit') ;
Route::post('/update/{id}', [ShortcodesController::class, 'update'])->name('shortcodes.update');
Route::delete('/destroy/{id}', [ShortcodesController::class, 'destroy'])->name('shortcodes.destroy');
});