generated from boboko/starter
Chore: Moving Wishlist from 3dealer to Core
This commit is contained in:
+3
-5
@@ -98,12 +98,10 @@
|
||||
->name('logout');
|
||||
|
||||
// Heart button: works for guests too (cookie), merged into the account
|
||||
// on login — see App\Services\Wishlist.
|
||||
// on login — see Modules\Core\Wishlist\Services\WishlistService. The
|
||||
// toggle action itself (route `wishlist.toggle`) is registered by
|
||||
// core's own WishlistServiceProvider, not here.
|
||||
Route::get('/wishlist', [WishlistController::class, 'guest'])->name('wishlist');
|
||||
Route::post('/wishlist/{productId}', [WishlistController::class, 'toggle'])
|
||||
->whereNumber('productId')
|
||||
->middleware('throttle:60,1')
|
||||
->name('wishlist.toggle');
|
||||
|
||||
Route::middleware('auth')->prefix('/account')->group(function () {
|
||||
Route::get('/', [AccountController::class, 'show'])->name('account');
|
||||
|
||||
Reference in New Issue
Block a user