Formdata/JSON request middleware for my FTYBR router
JavaScript Vim script
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
.vimrc
LICENCE
README.md
package.json

README.md

ftybr-parse-formdata Build Status

To create your middleware object:

var parseFormdata = require('ftybr-parse-formdata')();

Once you've instantiated it, you may add this middleware to your ftybr router:

router.registerMiddleware(parseFormdata());

This middleware will create a req.data object containing the parsed data from any GET query string, POST form data and or POST JSON data. The POST data will overwrite any GET data.