Added WBArticle

This commit is contained in:
2025-11-19 09:35:58 +01:00
parent a7e27cc54a
commit b88532e089
6 changed files with 43 additions and 0 deletions

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