릴리스: v1.4.24 topic/template 응답 키 축소

This commit is contained in:
2026-04-02 20:40:12 +09:00
parent 6a8d4ddabd
commit 257d50f9c5
10 changed files with 29 additions and 15 deletions

View File

@@ -132,7 +132,7 @@ router.post(['/games', '/templates'], requireAdmin, async (req, res) => {
await updateTopicThumbnail(template.id, copiedThumb)
}
const savedTemplate = await findTopicById(template.id)
res.json({ game: savedTemplate, template: savedTemplate })
res.json({ template: savedTemplate })
})
router.patch(['/games/:gameId', '/templates/:templateId'], requireAdmin, async (req, res) => {
@@ -147,7 +147,7 @@ router.patch(['/games/:gameId', '/templates/:templateId'], requireAdmin, async (
if (!template) return res.status(404).json({ error: 'not_found' })
const updated = await updateTopicVisibility(template.id, parsed.data.isPublic)
res.json({ game: updated, template: updated })
res.json({ template: updated })
})
router.patch(['/games/display-order', '/templates/display-order'], requireAdmin, async (req, res) => {
@@ -195,7 +195,7 @@ router.post(['/games/:gameId/thumbnail', '/templates/:templateId/thumbnail'], re
})
const updated = await updateTopicThumbnail(templateId, optimized.src)
res.json({ game: updated, template: updated })
res.json({ template: updated })
})
router.post(['/games/:gameId/images', '/templates/:templateId/images'], requireAdmin, upload.array('images', 50), async (req, res) => {