How can I use body-parser with LoopBack?
问题 I see that LoopBack has the Express 3.x middleware built-in. Indeed, body-parser is in loopback/node_modules . But I cannot figure out how to use it as middleware. I have never worked with Express 3.x, so maybe it's just that. require does not work, obviously, unless I install body-parser as a dependency in my project. What should I do in server.js to use body-parser so that web forms are parsed into req.params ? That's what it does, right? 回答1: After hours of frustration, I just added it to