Added WBArticle
This commit is contained in:
9
src/lib/readers/worldburner/posts.ts
Normal file
9
src/lib/readers/worldburner/posts.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { cache, reader } from '@/lib/readers/base';
|
||||
|
||||
export const getWBPosts = cache(async () =>
|
||||
reader.collections['wb_posts'].all()
|
||||
);
|
||||
|
||||
export const getWBPostsBySlug = cache(async (slug: string) =>
|
||||
reader.collections['wb_posts'].read(slug)
|
||||
);
|
||||
Reference in New Issue
Block a user