Skip to content

Commit 18a87bc

Browse files
authored
Merge pull request #338 from Team-TenTen/refactor/#335/fetch
인기 링크 조회 함수를 fetch로 변경
2 parents c38cb9f + 262b5a8 commit 18a87bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/link/useLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const useGetPopularLinks = () => {
116116
// 인기 링크 조회 서버 함수
117117
export const fetchGetPopularLinks = async () => {
118118
try {
119-
const response = await apiClient.get(`/api/links`)
119+
const response = await fetch(`/api/links`)
120120
return response
121121
} catch (e) {
122122
if (e instanceof Error) throw new Error(e.message)

0 commit comments

Comments
 (0)