If I have a route:
@app.route("/api")
def api():
return some_val
And then some_val
changes, I need to restart the server for the route to display the new value (I read/write it to a file).
How do I make routes dynamically update their content? Is it even possible?
Thanks!