Skip to content

Commit 372c057

Browse files
committed
refactor: remove unused article fetching APIs for various sources
1 parent 7aa57f1 commit 372c057

7 files changed

Lines changed: 2 additions & 159 deletions

File tree

src/features/cards/api/getDevtoArticles.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/features/cards/api/getFreeCodeCampArticles.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/features/cards/api/getHackerNewsArticles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useQuery } from '@tanstack/react-query'
2+
import { axios } from 'src/lib/axios'
23
import { ExtractFnReturnType, QueryConfig } from 'src/lib/react-query'
34
import { Article } from 'src/types'
4-
import { axios } from 'src/lib/axios'
55

66
const getArticles = async (): Promise<Article[]> => {
7-
return axios.get('/data/v2/hackernews.json')
7+
return axios.get(`https://api-dev.hackertab.dev/engine/card?source=hackernews`, {})
88
}
99

1010
type QueryFnType = typeof getArticles

src/features/cards/api/getHashnodeArticles.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/features/cards/api/getLobstersArticles.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/features/cards/api/getMediumArticles.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/features/cards/api/getRedditArticles.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)