title: Express JS redirect to default page instead of "Cannot GET"
body: <p>I am using express JS and I have a set of routes that I have defined as follows</p>
  
  <pre><code>require('./moduleA/routes')(app);
  require('./moduleB/routes')(app);
  </code></pre>
  
  <p>and so on. If I try to access any of the routes that I have not defined in the above routes, say</p>
  
  <pre><code>http://localhost:3001/test
  </code></pre>
  
  <p>it says </p>
  
  <pre><code>Cannot GET /test/
  </code></pre>
  
  <p>But instead of this I want to redirect to my app's index page. I want this redirection to happen to all of the undefined routes. How can I achieve this?</p>