title: POST body undefined in Express 4
body: <p>Im trying to post to a route in express 4, but when i try to log body i get undefined message, here are my configs:</p>
  
  <p><strong>/server.js</strong></p>
  
  <pre><code>/* main module entry point */
  'use strict';
  
  var express    = require( './server/node_modules/express' );
  var bodyParser = require( './server/node_modules/body-parser' );
  var env        = require( './server/env' );
  var app        = module.exports = express();
  
  app.use( require( './server/modules/auth' ) );
  
  app.use( express.static( __dirname + '/client/' ) );
  
  app.use( bodyParser.urlencoded( {
      extended: true
  } ) );
  
  app.use( bodyParser.json() );
  
  app.get( '/*', function ( require, response ) {
  
      response.sendFile( __dirname + '/client/index.html' );
  
  } );
  
  app.listen( env.port, function () {
  
      console.log( 'Listening to port ' + env.port );
  
  } );
  </code></pre>
  
  <p><strong>/server/modules/auth/index.js</strong></p>
  
  <pre><code>module.exports = (function () {
  
      var express = require('express'),
          router = express.Router(),
          signin = require('./signin.controller');
  
      router.route( '/signin' )
          .get( signin.get )
          .post( signin.post );
  
      return router;
  
  })();
  </code></pre>
  
  <p><strong>/server/modules/auth/sigin.controller.js</strong></p>
  
  <pre><code>module.exports = (function () {
  
  models = require( '../../database/models' );
  
  function get( request, response ) {
  
      models.users.findAll().then( function ( users ) {
  
          response.json( users );
  
      } );
      console.log( 'Sign In' );
  
  }
  
  function post( request, response ) {
  
      console.log( 'Sign In ' + request.body );//Returns "Sign In Undefined"
      response.send('Signed In'+ request.body);
  
  }
  
  return {
      get: get,
      post: post
  }
  
  })();
  </code></pre>
  
  <p>Is there anything wrong in the code?, I'm using postman to test it:
  <a href="https://i.stack.imgur.com/94uWw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/94uWw.png" alt="postman"></a></p>
  
  <p>The header i'm using is:</p>
  
  <p><em>Content-Type: application/json</em></p>