@ -186,6 +186,7 @@ export function loadArticlesWithImages(size = 40): Promise<ArticleCard[]> {
|
||||
if (!API_BASE) return []
|
||||
try {
|
||||
const res = await fetch(`${API_BASE}/api/public/articles?page=1&size=${size}&with_images=5`)
|
||||
console.log(res)
|
||||
if (!res.ok) return []
|
||||
const json: any = await res.json()
|
||||
const items: RawArticle[] = json?.data ?? []
|
||||
|
||||
Reference in New Issue
Block a user