title: How to pass multiple parameters to the express js server api in a mean.js application?
body: <p>The default serverside router for a mean.js application for a single parameter request is like this :</p>
  
  <pre><code>app.route('/articles/:articleId')
          .get(articles.read)
          .put(users.requiresLogin, articles.hasAuthorization, articles.update)
          .delete(users.requiresLogin, articles.hasAuthorization, articles.delete);
  
      // Finish by binding the article middleware
      app.param('articleId', articles.articleByID);
  </code></pre>
  
  <p>How do I parse multiple parameters in the middleware for the request say :</p>
  
  <pre><code>app.route('/articles/:articleId/:lineId')
  </code></pre>
  
  <p>How do I define the middleware for this ?</p>
  
  <p>I have tried doing :</p>
  
  <pre><code>app.param(['articleId','pageId'],articles.articleByID);
  </code></pre>
  
  <p>but it fails. Even the express.js API says that an array of arguments can be passed but it's vague on it's implementation.</p>
  
  <p>I even tried accessing req.param in the middleware definition but it returned undefined.</p>
  
  <p>Somebody please guide as to how to implement it?</p>