mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
fixing up the connect so it actually calls the thunk version of clear
This commit is contained in:
@@ -29,7 +29,7 @@ app.delete('/todos/:id', (req, res) => {
|
||||
delete store.todos[req.body.id];
|
||||
});
|
||||
|
||||
app.post('/todos', (req, res) => {
|
||||
app.post('/todos', req => {
|
||||
store.todos = req.body;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user