Skip to content

Commit 955d738

Browse files
authored
Merge branch 'develop' into refactor/applicant-filter-api#140
2 parents 44d6570 + bbff552 commit 955d738

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

โ€Žsrc/pages/user/ClubDetail/api/clubDetail.tsโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export const fetchClubDetail = async (clubId: number): Promise<ClubDetail> => {
77
if (!res.ok) {
88
throw new Error('๋™์•„๋ฆฌ ์ƒ์„ธ ์ •๋ณด๋ฅผ ๊ฐ€์ ธ์˜ค๋Š”๋ฐ ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.');
99
}
10+
1011
return res.json() as Promise<ClubDetail>;
1112
};

โ€Žsrc/pages/user/Main/api/club.tsโ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ export type ClubResponse = {
66
};
77

88
export async function getClubsByCategory(filter: ClubCategoryEng): Promise<ClubResponse> {
9-
const url = `/api/clubs?category=${filter}`;
10-
const response = await fetch(url);
11-
9+
const response = await fetch(import.meta.env.VITE_API_BASE_URL + `/clubs?category=${filter}`);
1210
return await response.json();
1311
}

0 commit comments

Comments
ย (0)