Mors payload parsing middleware
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.editorconfig
.gitignore
.jshintrc
.npmignore
.travis.yml
.yo-rc.json
Gruntfile.js
README.md
index.js
package.json

README.md

mors-payload

NPM Version Build Status Dependencies

Mors payload parsing middleware

Installation

$ npm install mors-payload

API

var mors = require('mors')
var payload = require('mors-payload')

var app = mors()

// parse json
app.use(payload.json())

app.use(function (req, res, next) {
  console.log(req.body) // populated!
  next()
});

License

Copyright (c) 2014 Tao Yuan
Licensed under the MIT license.