Merge pull request #219 from RasCarlito/fix-readme-http-example

Fix choo/http usage example in README.md
This commit is contained in:
Yoshua Wuyts
2016-08-11 11:57:13 +02:00
committed by GitHub
+1 -1
View File
@@ -298,7 +298,7 @@ app.model({
state: { items: [] },
effects: {
addAndSave: (data, state, send, done) => {
http.post('/todo', {body: data.payload, json: true}, (err, res, body) => {
http.post('/todo', {json: data.payload}, (err, res, body) => {
data.payload.id = body.id
send('todos:add', data, done)
})