mklabs/tiny-lr — pull request #47 by conradz (2014-07-03 20:49:03+00:00)
Title: Use bodyParser.json to remove deprecation warnings

This change uses the `bodyParser.json()` middleware instead of just using `bodyParser()`, since the latter prints out a deprecation warning to the console telling you that you should use `.json` or `.urlencoded`.

**Warning:** This does remove the ability to use url-encoded data to the server; it all must be JSON data. I am not sure if that is needed or not. The tests all work without it. I can include `bodyParser.urlencoded` if necessary.

Also this removes the `body-parser` middleware from the examples and tests since it is automatically handled in the LR server and does not need to be included in the app middleware. (This also takes care of the deprecation warnings when running them.)