using System; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json;

class Program

@app.route("/") def index(): subtitles = Subtitle.query.all() return render_template("index.html", subtitles=subtitles)

Example: