fixing up the connect so it actually calls the thunk version of clear

This commit is contained in:
Ken
2019-02-01 10:34:13 -08:00
parent 1b7775d784
commit 73ff9cdea7
5 changed files with 16 additions and 6 deletions

View File

@@ -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;
});