-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeprecationWarning: router argument is deprecated #3387
Comments
If you need some pre and post processing for specific web-handler -- please do it explicitly. |
Hi @asvetlov, There good thing about standards is there are so many to choose from :) The way aiohttp does middleware is very much like ASP.Net core, but this has the limitations I discuss in the README of my project (but maybe I have just misunderstood?). I was trying to achieve one of the patterns expressjs supports: routed middleware. I can certainly find a work-around (I guess a decorator would be quite elegant), but it would be a shame to loose this feature. What is the motivation for deprecating it? Rob |
Please read #2766 |
Fantastic project!
I have a project aiohttp-route-middleware which uses the
router
parameter on theaiohttp.web.Application
class constructor.I've just noticed this parameter has become deprecated.
What should I do instead?
Thanks,
Rob
The text was updated successfully, but these errors were encountered: