title: TypeError: Object function (req, res, next) { app.handle(req, res, next); } has no method 'configure'
body: <p>Can anyone point out why am I getting this error when I am trying to run the following code ?</p>
  
  <pre><code> var express = require('express');
   var login = require('./routes/login');
  
   var app = express();
  
   //all environments
   app.configure(function () {
   app.use(express.logger('dev')); 
   app.use(express.bodyParser());
  });
  
  
  app.post('/loginUser',login.loginUser);
  
  
  app.listen(3000);
  
  console.log("Listening on port 3000...");
  </code></pre>
  
  <p>I am using node.js with the express 4.x version.</p>