title: How to render react using python routes?
body: <p>I want to use this route here (below) and render my react file. Using a python route.... Could someone give me some direction on how I can accomplish this?</p>
  
  <pre><code>@Auth.route('/login', methods=['GET'])
  def login():
      #data = {'username':'bob', 'password':'peepee123'}
      #session['token'] = 'jsdkfkj934ujeklfjdlndsflds'
  
  auth = request.authorization
  
  if auth and auth.password == 'password':
      token = jwt.encode({'user': auth.username}, app.config['SECRET_KEY'])
  
      return jsonfiy({'token': token.decode('UTF-8')})
  
  return make_response('Could Not verify!', 401, {'WWW-Authenticate': 'Basic realm = "Login Required"'})
  </code></pre>