title: Router.use requires middleware function?
body: <p>So I'm trying to seperate my login routes in a seperate JS file called login_routes.js</p>
  
  <p>I keep getting this specific error: </p>
  
  <blockquote>
    <p>TypeError: Router.use() requires middleware function but got a Object
        at Function. (/Users/ethanthomas/Desktop/mean-stuff/express-server/node_modules/express/lib/router/index.js:446:13)</p>
  </blockquote>
  
  <p>Not entirely understanding what it's asking me to <code>implement</code>?</p>
  
  <p><strong>login_routes.js:</strong></p>
  
  <pre><code>var express = require('express');
  var app = express();
  
  app.route('/login')
  
  .get(function(req, res, next) {
      res.send('this is the login form');
  })
  
  .post(function(req, res, next) {
      console.log('processing');
      res.send('proccessing the login form!');
  });
  </code></pre>
  
  <p><strong>server.js:</strong></p>
  
  <pre><code>var express = require('express');
  var app = express();
  var path = require('path');
  var adminRoutes = require('./app/routes/admin_routes');
  var loginRoutes = require('./app/routes/login_routes');
  
  app.use('/admin', adminRoutes);
  app.use('/login', loginRoutes);
  
  
  //send our index.html file to the user for the home page
  app.get('/', function(req, res) {
      res.sendFile(path.join(__dirname + '/index.html'));
  });
  
  //start the server
  app.listen(1337);
  console.log('leet is the magic port');
  </code></pre>