Skip to content

Commit 17c8e68

Browse files
committed
Merge branch 'develop' of https://github.com/CodeitFESI4-Team1/Team-1-Codeit into develop
2 parents 3bd1796 + 7e36e5b commit 17c8e68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/_apis/detail/get-crew-detail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type CrewDetail = {
2222
};
2323

2424
export 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',

src/app/api/mock-api/detail/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CrewReviewData } from '@/src/mock/review-data';
44
// FIX: 데이터 패칭 확인을 위한 목 api 추후 삭제 예정
55

66
const 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':

0 commit comments

Comments
 (0)