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,