I want to define routes manually for some class method, something like this:
class X: def route1():
and then do something like this:
app.add_url_rule('/x/', view_func=X.route1()) app.add_url_rule('/y/', view_func=X.route2())
Maybe? What is the right way to accomplish this?
source share