emmett-framework / emmett

The web framework for inventors
Other
1.03k stars 70 forks source link

define routing to a class method? #381

Closed erhuabushuo closed 2 years ago

erhuabushuo commented 2 years ago

define routing to a class method?

gi0baro commented 2 years ago

@erhuabushuo by "class method" you mean a method defined into a class decorated by classmethod or an instance method?

The first is not supported, but the second one. I'm not sure why would you do that, though. Can you explain your use-case?