diff --git a/apps/client/src/shared/apis/home/home-queries.ts b/apps/client/src/shared/apis/home/home-queries.ts index c02107ed..84515eb9 100644 --- a/apps/client/src/shared/apis/home/home-queries.ts +++ b/apps/client/src/shared/apis/home/home-queries.ts @@ -59,7 +59,7 @@ export const getTicketing = export const getSuggestPerformance = async (): Promise => { const response = await get>( - END_POINT.GET_SUGGEST_PERFORMANCE, + END_POINT.GET_SUGGEST_PERFORMANCE(10), ); return response.data; }; diff --git a/apps/client/src/shared/constants/api.ts b/apps/client/src/shared/constants/api.ts index ec3f387d..f21fd97f 100644 --- a/apps/client/src/shared/constants/api.ts +++ b/apps/client/src/shared/constants/api.ts @@ -49,9 +49,10 @@ export const END_POINT = { // 홈 페이지 GET_TICKETING: '/performances/reservation', GET_LATEST_PERFORMANCES: '/performances/info', - GET_SUGGEST_PERFORMANCE: '/performances/recommend', + GET_SUGGEST_PERFORMANCE: (limit: number) => + `/v2/performances/recommend?limit=${limit}`, GET_SUGGEST_MUSIC_PERFORMANCE: (performanceSize: number, songSize: number) => - `performances/v2/song/recommend?performanceSize=${performanceSize}&songSize=${songSize}`, + `/v2/performances/song/recommend?performanceSize=${performanceSize}&songSize=${songSize}`, //타임 테이블 GET_AVAILABLE_FESTIVALS: '/user/timetables/festivals',