Skip to content

Commit

Permalink
Feat : 북마크 탭 조회시 조건에 따른 엔드포인트 변경 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
geniee1220 committed Mar 17, 2024
1 parent 43df1ee commit 9945291
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/apis/mylounge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ import { useEffect } from 'react';
* pending : 승인 대기중인 여행그룹
*/
export const getGroupList = (params: GroupListParams) => {
if (params.status === 'bookmark') {
return instance.get(
import.meta.env.VITE_SERVER_URL + '/groups/list/my-bookmark',
{
params: {
page: params.page,
},
}
);
}
return instance.get(
import.meta.env.VITE_SERVER_URL + '/groups/list/my-list',
{
Expand Down

0 comments on commit 9945291

Please sign in to comment.