Raffales-LMS/routes/route.campaigns.php

15 lines
1.2 KiB
PHP
Raw Normal View History

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