File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type CrewDetail = {
2222} ;
2323
2424export async function getCrewDetail ( ) : Promise < CrewDetail > {
25- const response = await fetchApi < CrewDetail > ( '/api/mock-api/detail?type=crewDetail ' , {
25+ const response = await fetchApi < CrewDetail > ( '/api/mock-api/detail?type=crewDetails ' , {
2626 method : 'GET' ,
2727 headers : {
2828 'Content-Type' : 'application/json' ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { CrewReviewData } from '@/src/mock/review-data';
44// FIX: 데이터 패칭 확인을 위한 목 api 추후 삭제 예정
55
66const data = {
7- crewDetail : {
7+ crewDetails : {
88 id : 1 ,
99 title : '크루 제목 제목 제목' ,
1010 mainLocation : '서울특별시' ,
@@ -130,8 +130,8 @@ export async function GET(req: Request) {
130130
131131 // type에 따라 다른 데이터 반환
132132 switch ( type ) {
133- case 'crewDetail ' :
134- return NextResponse . json ( data . crewDetail ) ;
133+ case 'crewDetails ' :
134+ return NextResponse . json ( data . crewDetails ) ;
135135 case 'gatherings' :
136136 return NextResponse . json ( data . gatherings ) ;
137137 case 'gatheringDetail' :
You can’t perform that action at this time.
0 commit comments