소스 검색

Merge branch 'zzf-account' into dev

zhangzf 2 일 전
부모
커밋
9c87c914c7
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,{  }: { 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>>({