lib/index.js
function generate(allows) {
  return function (req, res, next) {
    req.route.allows = allows;
    next();
  };
}
function generate(allows) {
  return function (req, res, next) {
    req.route.allows = allows;
    next();
  };
}
function generate ( allows ) { return function ( req , res , next ) { req . route . allows = allows ; next ( ) ; } ; }
Generates the Express middleware to associate the allowed values to the route.
Generates the Express middleware to associate the allowed values to the route .