fix item create

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-01-18 17:16:35 +03:00
parent 0dcf961cce
commit d2d8b63aba
948 changed files with 2 additions and 0 deletions

View File

@@ -44,6 +44,8 @@ router.post('/item', requiredValidate('todoId', 'title'), async (req, res) => {
list.items.push(item)
await list.save()
res.send(getAnswer(null, item))
})
router.get('/:todoId', async (req, res) => {