@app.route('/general') def general_stats(): # call API and convert response into Python dictionary url = f'https://corona-virus-stats.herokuapp.com/api/v1/cases/general-stats' response = requests.get(url)