1.0.0 • Published 8 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.git
Usage
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
8 years ago