fetch real api
This commit is contained in:
@@ -56,6 +56,9 @@ export const authors: Record<string, Author> = {
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
export const blogPosts: BlogPost[] = [
|
||||
{
|
||||
id: 1,
|
||||
@@ -550,4 +553,4 @@ export const getRelatedPosts = (currentPost: BlogPost, limit: number = 3): BlogP
|
||||
return blogPosts
|
||||
.filter(post => post.id !== currentPost.id && post.category === currentPost.category)
|
||||
.slice(0, limit);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user