urlsnail/routes/web.php

14 lines
343 B
PHP

<?php
use App\Http\Controllers\BookmarkController;
use Illuminate\Support\Facades\Route;
Route::get(
'/', function () {
return redirect()->action([BookmarkController::class, 'index']);
}
);
Route::resource('bookmarks', BookmarkController::class);
Route::post('/bookmarks/{bookmark}', [BookmarkController::class, 'update']);