Quellcode durchsuchen

添加礼品卡路由

llp vor 5 Tagen
Ursprung
Commit
c13ca439bd
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      packages/Longyi/Gift/src/Routes/shop-routes.php

+ 3 - 1
packages/Longyi/Gift/src/Routes/shop-routes.php

@@ -4,11 +4,13 @@ use Illuminate\Support\Facades\Route;
 use Longyi\Gift\Http\Controllers\Shop\GiftController;
 
 Route::group(['middleware' => ['web', 'theme', 'locale', 'currency'], 'prefix' => 'gift'], function () {
-    Route::get('', [GiftController::class, 'index'])->name('shop.gift.index');
+    Route::get('/index', [GiftController::class, 'index'])->name('shop.gift.index');
+    Route::get('/lists', [GiftController::class, 'lists'])->name('shop.gift.lists');
 });
 Route::group(['middleware' => ['web', 'theme', 'locale', 'currency', 'customer'], 'prefix' => 'gift'], function () {
     Route::get('/my-gift-cards', [GiftController::class, 'getCustomerGiftCards'])->name('shop.api.checkout.cart.giftcard.list');
     Route::post('/activate', [GiftController::class, 'activateGiftCard'])->name('shop.api.checkout.cart.giftcard.activate');
     Route::delete('/remove', [GiftController::class, 'destroyGiftCard'])->name('shop.api.checkout.cart.giftcard.remove');
     Route::post('/auto-apply-expiring', [GiftController::class, 'autoApplyExpiringGiftCard'])->name('shop.api.checkout.cart.giftcard.auto-apply');
+    Route::post('/add', [GiftController::class, 'add'])->name('shop.gift.add');
 });