I am having a problem with my Node.js app. In short I want to pass custom parameters into my middleware function other than just `req`, `res`, and `next`.

Middleware file:

```
var DB = require('./DB.js');

function requirePermissions(e) { 
    console.log('nope')
}

module.exports = requirePermissions;

```

Route:

```
router.post('/posts', requirePermissions('post_creation'), function(req, res)       {
  var   o       = req.body,
      title   = o.post.title,
      content = o.post.content;

  res.send('made it');
});

```

I have confirmed that using function `requirePermissions(req, res, next) {}` will work, but I do not understand how to include my own parameters.