From b5fed6ad248f17a90e6fcc3556d9ea2ae7760075 Mon Sep 17 00:00:00 2001 From: Olabode Lawal-Shittabey Date: Tue, 3 Mar 2026 21:55:30 +0100 Subject: [PATCH] Change slug mapping from word.slug to word.id --- src/pages/api/v1/browse/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/v1/browse/index.js b/src/pages/api/v1/browse/index.js index 7a0a29ee..e7939e2e 100644 --- a/src/pages/api/v1/browse/index.js +++ b/src/pages/api/v1/browse/index.js @@ -12,7 +12,7 @@ export async function GET() { const dictionary = await getCollection("dictionary"); const response = dictionary.map((word) => { return { - slug: word.slug, + slug: word.id, title: word.data.title, content: word.body, };