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