1.0.0 • Published 9 years ago
request-has-body v1.0.0
Request Has Body
Easily check for body directly using a middleware.
Install
$ npm install --save git+https://git@github.com/matteocrippa/request-has-body.gitUsage
var hasBody = require('request-has-body');
// setup routes
app.use('/', hasBody(['test']), rootRoute);This will check for all the request to have req.body.test.
1.0.0
9 years ago