Closed foshantiger closed 8 years ago
Solved. Just simply add the data property to the METHOD node,like that: add: {POST:{data:true}}, hope to make it as an example in the usage node :)
This issue was fixed with PR #70 but seneca-web hasn't been published yet. npm install
seneca-web via GitHub url.
I use the express and post data to add a product, everything seems ok except the "name" param, it's expected to get "iPhone" but actual got "Seneca/2.1.0/b0yoh6objcyt/1470717984357/15018/-" , is seems overrided by seneca?
what data I posted is : { "category":"mobile_phone", "name":"iPhone", "description":"description", "price":5999 }
And here is the code: