We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44d6570 + bbff552 commit 955d738Copy full SHA for 955d738
โsrc/pages/user/ClubDetail/api/clubDetail.tsโ
@@ -7,5 +7,6 @@ export const fetchClubDetail = async (clubId: number): Promise<ClubDetail> => {
7
if (!res.ok) {
8
throw new Error('๋์๋ฆฌ ์์ธ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ค๋๋ฐ ์คํจํ์ต๋๋ค.');
9
}
10
+
11
return res.json() as Promise<ClubDetail>;
12
};
โsrc/pages/user/Main/api/club.tsโ
@@ -6,8 +6,6 @@ export type ClubResponse = {
6
export async function getClubsByCategory(filter: ClubCategoryEng): Promise<ClubResponse> {
- const url = `/api/clubs?category=${filter}`;
- const response = await fetch(url);
-
+ const response = await fetch(import.meta.env.VITE_API_BASE_URL + `/clubs?category=${filter}`);
return await response.json();
13
0 commit comments