diff --git a/src/_apis/detail/get-crew-detail.ts b/src/_apis/detail/get-crew-detail.ts index 1e31c7be..ebbe72c5 100644 --- a/src/_apis/detail/get-crew-detail.ts +++ b/src/_apis/detail/get-crew-detail.ts @@ -22,7 +22,7 @@ type CrewDetail = { }; export async function getCrewDetail(): Promise { - const response = await fetchApi('/api/mock-api/detail?type=crewDetail', { + const response = await fetchApi('/api/mock-api/detail?type=crewDetails', { method: 'GET', headers: { 'Content-Type': 'application/json', diff --git a/src/app/api/mock-api/detail/route.ts b/src/app/api/mock-api/detail/route.ts index 25bb5de8..2b10e6d1 100644 --- a/src/app/api/mock-api/detail/route.ts +++ b/src/app/api/mock-api/detail/route.ts @@ -4,7 +4,7 @@ import { CrewReviewData } from '@/src/mock/review-data'; // FIX: 데이터 패칭 확인을 위한 목 api 추후 삭제 예정 const data = { - crewDetail: { + crewDetails: { id: 1, title: '크루 제목 제목 제목', mainLocation: '서울특별시', @@ -130,8 +130,8 @@ export async function GET(req: Request) { // type에 따라 다른 데이터 반환 switch (type) { - case 'crewDetail': - return NextResponse.json(data.crewDetail); + case 'crewDetails': + return NextResponse.json(data.crewDetails); case 'gatherings': return NextResponse.json(data.gatherings); case 'gatheringDetail':