feat(discover-api): handle topics
This commit is contained in:
parent
3bee01cfa7
commit
45b51ab156
2 changed files with 31 additions and 18 deletions
|
|
@ -43,7 +43,6 @@ const Page = () => {
|
|||
|
||||
const fetchArticles = async (topic: string) => {
|
||||
setLoading(true);
|
||||
console.log(topic);
|
||||
try {
|
||||
const res = await fetch(`/api/discover?topic=${topic}`, {
|
||||
method: 'GET',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue