I am using Flask with React. I would like to create to catch the whole route looking like something like this (although this does not work):
@app.route('*') def get(): return render_template('index.html')
Since my application will use React and it uses index.html to mount my React components, I would like every route request to point to my index.html page in templates. Is there a way to do this (or use redirection in the best way)?
source share