block by mpmckenna8 f9eb2a43e470de85f0bb

Middleware fix for Node Up And Running Chp 2

In chp 2 of Node Up and Running http://chimera.labs.oreilly.com/books/1234000001808/ch02.html#I_sect12_d1e1886 ex 2-15 and the surrounding and probably some following stuff don’t work properly. I think I kind of fixed it with the following fakeNoTwit.js and twTest.js files which work to make the simple server and test it a little.

Twas a simple fix. Just had to use the body-parser module because .bodyParser() was removed from the main Express module because of security flaws I guess. Have fun playing with node!

fakeNoTwit.js

twTest.js