feat: include content in news list responses

This commit is contained in:
seaznCode 2025-12-14 18:20:47 +01:00
parent 440aa8323b
commit 92a54866b4

View File

@ -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,