node js post request.body undefined
<p>server.js</p>

<pre><code>var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var session = require('express-session');
var fs = require('fs');
var router = require('./router/main')(app, fs);

var server = app.listen(3000, function(){
  console.log('Express server has started on port 3000');
});

app.use(bodyParser.json());
app.use(bodyParser.urlencoded());
</code></pre>

<p>router/main.js</p>

<pre><code>module.exports = function(app, fs)
{
  app.post('/addUser/', function(req, res){
        console.log(req.body);
    });
}
</code></pre>

<p>I use postman tool!! requets param {"password" : "pass","name" : "dltlsdn"}</p>

<p>but... req.body is undefind.... why..??</p>