From 92a54866b47877f3f82dadb2f61758c8a663b345 Mon Sep 17 00:00:00 2001 From: seaznCode Date: Sun, 14 Dec 2025 18:20:47 +0100 Subject: [PATCH] feat: include content in news list responses --- controller/news/NewsController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller/news/NewsController.js b/controller/news/NewsController.js index b4565d1..03a18d3 100644 --- a/controller/news/NewsController.js +++ b/controller/news/NewsController.js @@ -22,10 +22,13 @@ exports.list = async (req, res) => { id: r.id, title: r.title, summary: r.summary, + content: r.content, slug: r.slug, category: r.category, is_active: !!r.is_active, published_at: r.published_at, + created_at: r.created_at, + updated_at: r.updated_at, imageUrl: r.object_storage_id ? buildImageUrlFromKey(r.object_storage_id) : '' })) res.json({ success: true, data }) @@ -44,6 +47,7 @@ exports.listActive = async (req, res) => { id: r.id, title: r.title, summary: r.summary, + content: r.content, slug: r.slug, category: r.category, published_at: r.published_at,