Chore: Moving Wishlist from 3dealer to Core

This commit is contained in:
2026-09-28 10:10:50 +03:00
parent b1162761de
commit 36806cac5b
11 changed files with 16 additions and 272 deletions
+3 -5
View File
@@ -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');