Open stepochkin opened 6 years ago
I have the same problem too. Looks like when hello
is an async method, Japronto won't accept self
as the first argument. It only runs correctly when request
is the first argument instead of self, which feels wrong
When I add class methods as route handlers:
I get error: TypeError: hello() missing 1 required positional argument: 'request'
Is it possible to use async class methods at all? Or maybe I have done something wrong?