todo-app: get item by id
This commit is contained in:
parent
e0618e431f
commit
f95a26acbb
@ -47,7 +47,7 @@ router.get('/:todoId/:itemId', async (req, res) => {
|
|||||||
return res.send(getAnswer(new Error('no such item')))
|
return res.send(getAnswer(new Error('no such item')))
|
||||||
}
|
}
|
||||||
|
|
||||||
res.send(getAnswer(null, item.comments))
|
res.send(getAnswer(null, item))
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = router
|
module.exports = router
|
||||||
|
Loading…
Reference in New Issue
Block a user