|
@@ -5,11 +5,8 @@ use Longyi\Gift\Http\Controllers\Shop\GiftController;
|
|
|
use Longyi\RewardPoints\Http\Middleware\ApiCustomerAuthenticate;
|
|
use Longyi\RewardPoints\Http\Middleware\ApiCustomerAuthenticate;
|
|
|
|
|
|
|
|
Route::group(['prefix' => 'api'], function () {
|
|
Route::group(['prefix' => 'api'], function () {
|
|
|
- Route::group(['prefix' => 'gift'], function () {
|
|
|
|
|
- Route::get('/index', [GiftController::class, 'index'])->name('shop.gift.index');
|
|
|
|
|
- Route::get('/lists', [GiftController::class, 'lists'])->name('shop.gift.lists');
|
|
|
|
|
- });
|
|
|
|
|
Route::group(['middleware' => ['api', 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::post('/add', [GiftController::class, 'add'])->name('shop.gift.add');
|
|
|
Route::get('/my-gift-cards', [GiftController::class, 'getCustomerGiftCards'])->name('shop.api.checkout.cart.giftcard.list');
|
|
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::post('/activate', [GiftController::class, 'activateGiftCard'])->name('shop.api.checkout.cart.giftcard.activate');
|