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