text: from flask import render_template, request
  from app import app
  import plotting
  import os
  
  
  @app.route("/")
  @app.route("/index")
  def index():
      try:
          with open('status.txt', 'r') as f:
              status_line = f.read()
      except Exception as e:
          status_line = 'Error: Unable to get the last update time.'
      return render_template("index.html", title="Home", status_line=status_line)
  
  
  @app.route("/details", methods=['GET'])
  def details():
      locale = request.args.get('locale')
      df_locale, df_grouped, country_name = plotting.get_details(locale)
      return render_template(
          "details.html",
          title="Details",
          locale=locale,
          df_locale=df_locale,
          df_grouped=df_grouped,
          country_name=country_name
      )
  
  
  @app.route('/get_map')
  def get_map():
      return render_template("map.html")
  