Chore: Moving Wishlist from 3dealer to Core
This commit is contained in:
1 parent
b1162761de
commit
36806cac5b
11 files changed
+16
-272
No files matched your search
+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