Bladeren bron

接口调整

zhangzf 2 dagen geleden
bovenliggende
commit
208604e478
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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,{  }: { params: Promise<{ id: string }> }) {
+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,{  }: { params: Promise<{ id: string }> }) {
+export async function GET(req: NextRequest,{  }: {  }) {
     try {
         const guestToken = getAuthToken(req);
         const response = await restApiFetch<FetchResult<GiftCardRespBody>>({