추천 티어표 분리와 관리자 추천 지정 기능 추가

This commit is contained in:
2026-04-03 12:18:04 +09:00
parent 3b9f5f18e0
commit 8a43a2dd2c
12 changed files with 281 additions and 15 deletions

View File

@@ -124,8 +124,8 @@ const tierListUpsertSchema = z.object({
router.get('/public', async (req, res) => {
const topicId = typeof req.query.topicId === 'string' ? req.query.topicId : ''
const queryText = typeof req.query.q === 'string' ? req.query.q : ''
const lists = await listPublicTierLists(topicId, req.session?.userId || '', queryText)
res.json({ tierLists: lists })
const result = await listPublicTierLists(topicId, req.session?.userId || '', queryText)
res.json(result)
})
router.get('/me', requireAuth, async (req, res) => {