Files
blog/src/lib/readers/worldburner/posts.ts
2025-11-19 09:35:58 +01:00

10 lines
249 B
TypeScript

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)
);