In the docs, it says that if I am to use method view, that the url_for() should be the class name. https://sanic.readthedocs.io/en/latest/sanic/class_based_views.html
It gives an example of it when that method view is inside the same module as the app. How do I build URLs for method views that are inside other modules?
Assume the view is located here:
I have tried these:
url = app.url_for("MethodView") url = app.url_for("my.module.MyMethodView")
Related + ideally, this should work:
from my module import MyMethodView url = app.url_for(MyMethodView, foo='bar')
Any help would be appreciated!