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
I'm trying to implement a pretty trivial thing — a catch-all handler that will return 404 when request handler is not found for the request in question, however, I can't find any related examples in the docs. What is the best practice for this? I'm using koa.
If I add the following middleware, then it will overwrite the response data from the controller:
Hello!
I'm trying to implement a pretty trivial thing — a catch-all handler that will return 404 when request handler is not found for the request in question, however, I can't find any related examples in the docs. What is the best practice for this? I'm using koa.
If I add the following middleware, then it will overwrite the response data from the controller:
The text was updated successfully, but these errors were encountered: