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