create todo list
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user