title: Routing in separate files with express 4.13
body: <p>I have poblem with routing in express 4.13</p>
  
  <p>Here is my index.js file:</p>
  
  <pre><code>var express = require("express");
  var app = express();
  var wagner = require("wagner-core");
  var morgan = require('morgan');
  
  app.use(morgan('combined'));
  
  require ('./models')(wagner);
  
  var api = require("./api");
  
  app.use('/api/v1', api);
  
  
  app.listen(3000, function() {
      console.log("Server Started!!!");
  });
  </code></pre>
  
  <p>And this is file with routes:</p>
  
  <pre><code>var express = require("express");
  // var status = require("http-status");
  
  module.exports = function() {
  
      var api = express.Router();
  
      api.get("/category/id/:id", function(req,res){
          console.log("TEST")
          res.send("TEST");
      });
  
  }
  </code></pre>
  
  <p>After I visit <a href="http://localhost:3000/api/v1/category/id/123" rel="nofollow">http://localhost:3000/api/v1/category/id/123</a> page just loadin and nothing happend... Anyone know what is problem?</p>