I wan’t to pass data to a route function, when registering the callback.
def foo (bar):
print (bar)
app.add_url_rule ("/", "foo", foo)
How can I define bar?
PS: Ideally the function should belong to a class, but this should be achievable once I can pass parameters.