Explorar el Código

修改中间件

llp hace 1 mes
padre
commit
02b8ca6471
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/Longyi/Gift/src/Routes/shop-routes.php

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

@@ -5,7 +5,7 @@ use Longyi\Gift\Http\Controllers\Shop\GiftController;
 use Longyi\RewardPoints\Http\Middleware\ApiCustomerAuthenticate;
 
 Route::group(['prefix' => 'api'], function () {
-    Route::group(['middleware' => ['web', 'customer', ApiCustomerAuthenticate::class], 'prefix' => 'gift'], function () {
+    Route::group(['middleware' => ['api', ApiCustomerAuthenticate::class], 'prefix' => 'gift'], function () {
         Route::get('/lists', [GiftController::class, 'lists'])->name('shop.gift.lists');
         Route::post('/add', [GiftController::class, 'add'])->name('shop.gift.add');
         Route::get('/my-gift-cards', [GiftController::class, 'getCustomerGiftCards'])->name('shop.api.checkout.cart.giftcard.list');