zhangzf 1 день назад
Родитель
Сommit
bb19b03473
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/app/api/gift/lists/route.ts
  2. 1 1
      src/app/api/gift/my-gift-cards/route.ts

+ 1 - 1
src/app/api/gift/lists/route.ts

@@ -3,7 +3,7 @@ import { restApiFetch } from "@/utils/bagisto";
 import { isBagistoError } from "@/utils/type-guards";
 import { getAuthToken } from "@/utils/helper";
 import type { GiftListBody,FetchWrap  } from '@/types/api/gift/lists';
-export async function GET(req: NextRequest,{  }: {  }) {
+export async function GET(req: NextRequest) {
     try {
         const guestToken = getAuthToken(req);
         const response = await restApiFetch<FetchWrap<GiftListBody>>({

+ 1 - 1
src/app/api/gift/my-gift-cards/route.ts

@@ -3,7 +3,7 @@ import { restApiFetch } from "@/utils/bagisto";
 import { isBagistoError } from "@/utils/type-guards";
 import { getAuthToken } from "@/utils/helper";
 import type { GiftCardRespBody,FetchResult  } from '@/types/api/gift/my-gift-cards';
-export async function GET(req: NextRequest,{  }: {  }) {
+export async function GET(req: NextRequest) {
     try {
         const guestToken = getAuthToken(req);
         const response = await restApiFetch<FetchResult<GiftCardRespBody>>({