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):
@app.route('*')
def get():
return render_template('index.html')
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)?