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