title: Redirecting multiple routes in express.js
body: <p>I am working on an express app and am new to the framework.  I have a few routes I'd like to redirect to one without doing something like:</p>
  
  <pre><code>var router = require("express").Router();
  
  router.all("/route", function(req, res){
      res.redirect("/repetitive");
  });
  
  router.all("/route2", function(req, res){
      res.redirect("/repetitive");
  });
  </code></pre>
  
  <p>This is a contrived example, but I'm looking for a way to have many routes redirect to <code>/repetitive</code> without writing lots of <code>router.all</code>s , but I don't see a way in the docs. Is passing a regex to <code>router.all</code> an option and if so is that the best practice for express? Thanks!</p>