You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using aiohttp to create RESTfull JSON interfaces, one needs to always return JSON, but currently there is no mention on how to do it. #598 refers to this.
Expected behaviour
I would expect to be able to set app.default_not_found and app.default_not_allowed or something easy to override default responses.
Actual behaviour
I need to create a middleware (maybe simple).
Steps to reproduce
Just create an app without routes and request a path.
The text was updated successfully, but these errors were encountered:
Long story short
When using aiohttp to create RESTfull JSON interfaces, one needs to always return JSON, but currently there is no mention on how to do it. #598 refers to this.
Expected behaviour
I would expect to be able to set app.default_not_found and app.default_not_allowed or something easy to override default responses.
Actual behaviour
I need to create a middleware (maybe simple).
Steps to reproduce
Just create an app without routes and request a path.
The text was updated successfully, but these errors were encountered: