title: Catch all routes for Flask
body: <p>I'm using Flask with React. I'd like to create a catch all route similar to something like this (although this doesn't work):</p>
  
  <pre><code>@app.route('*')
  def get():
      return render_template('index.html')
  </code></pre>
  
  <p>Since my app will use React and it's using the index.html to mount my React components, I'd like for every route request to point to my index.html page in templates. Is there a way to do this (or is using a redirect the best way)?</p>