title: Calling already defined routes in other routes in Express NodeJS
body: <p>I am writing a web app in node.js using Express. I have defined a route as follows:</p>
  
  <pre><code>app.get("/firstService/:query", function(req,res){
      //trivial example
      var html = "&lt;html&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;"; 
      res.end(html)
  });
  </code></pre>
  
  <p>How do I reuse that route from within express?</p>
  
  <pre><code>app.get("/secondService/:query", function(req,res){
      var data = app.call("/firstService/"+query);
      //do something with the data
      res.end(data);
  });
  </code></pre>
  
  <p>I couldn't find anything in the API documentation and would rather not use another library like "request" because that seems kludgey. I am trying to keep my app as modular as possible. Thoughts?</p>
  
  <p>Thanks</p>