category field added

implemented ctegory logic, ditional pages added
This commit is contained in:
dimitar committed 2026-02-06 03:35:28 +01:00
1 parent add12b2fbf
commit 46eb41aaa5
16 files changed
+598 -21

No files matched your search

+8
View File
@@ -407,6 +407,14 @@ export async function fetchHeroArticle(): Promise<Article | null> {
return article || null;
}
export async function fetchLatestArticles(limit = 12): Promise<ArticlesResponse> {
const response = await authFetch(`${API_BASE_URL}/articles?status=published&limit=${limit}`);
if (!response.ok) {
throw new Error('Failed to fetch latest articles');
}
return response.json();
}
export async function fetchPinnedLiveBlogs(): Promise<LiveBlog[]> {
const response = await authFetch(`${API_BASE_URL}/live-blogs/featured`);
if (!response.ok) {