feat: include content in news list responses
This commit is contained in:
parent
440aa8323b
commit
92a54866b4
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user