create todo list

This commit is contained in:
Primakov Alexandr Alexandrovich committed 2025-01-18 16:50:58 +03:00
1 parent d88e680413
commit fb644b6f7b
8 files changed
+102 -69

No files matched your search

@@ -27,7 +27,7 @@ router.put('/new', (req, res) => {
return res.status(500).send('No data to update'); // Internal server error
}
indexedUpdatedData = { id: data.length, ...updatedData }; // Add the new dictionary to the array
const indexedUpdatedData = { id: data.length, ...updatedData }; // Add the new dictionary to the array
data.push(indexedUpdatedData); // Add the new dictionary to the array