Laravel/routes/web.php
2024-12-02 11:04:54 +01:00

15 lines
536 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AboutController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\TodoController;
Route::get('/', [HomeController::class, 'index'])->name('route0');
Route::get('/about', [AboutController::class, 'index'])->name('route1');
Route::get('/todo', [TodoController::class, 'index'])->name('route2');
Route::post('/todo', [TodoController::class, 'store'])->name('route3');
Route::delete('/todo/{id}', [TodoController::class, 'destroy'])->name('route4');