todo-app: get item by id

This commit is contained in:
Primakov Alexandr Alexandrovich 2025-01-19 20:44:26 +03:00
parent e0618e431f
commit f95a26acbb

View File

@ -47,7 +47,7 @@ router.get('/:todoId/:itemId', async (req, res) => {
return res.send(getAnswer(new Error('no such item')))
}
res.send(getAnswer(null, item.comments))
res.send(getAnswer(null, item))
})
module.exports = router