Why I getting this 'res.render() is not a function'
<p><p>I am trying create a route, but I getting this error.<p></p>

<blockquote>
  <p>res.send is not a function</p>
</blockquote>

<p>And my code in the index.js file it is this way</p>

<pre><code>var express = require('express');
var router = express.Router();

router.get('/', function(res, req, next){
 res.render('index');
});

module.exports = router;
</code></pre>

<p>And in the app.js file is that way</p>

<pre><code>var index = require('./routes/index.js');
...
...
...
app.get('/', index);
</code></pre>

<p>Thank you, since already.</p>