title: NodeJs / Expressjs, multiple routing paths in a array, how to get which one is mounted?
body: <pre><code>var express = require('express');
  
  var exampleRouter = express.Router();
  
  exampleRouter.get([
      '/example/cat/:id/subcat/:subId', /*1st URL*/
      '/example/:id/:subId/', /*2nd URL*/
      ],function(req, res){
  
  if( *1st url condition*){ // It should enter here
    /*do something..*/
  }else if( *2nd url condition* ){
    /*do something..*/
  }
  
  });
  </code></pre>
  
  <p>Suppose the request from browser is like this
  <a href="http://www.example.com/example/cat/1/subcat/2" rel="nofollow">http://www.example.com/example/cat/1/subcat/2</a></p>
  
  <p>What should be the <em>1st Url condition</em>?</p>