-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently the error handler is global, and dependent on "api mode" or not. However, "mvc" apps could have api endpoints, and so there should be an easy way to return a json response instead of html for those endpoints. A great user experience would be to just mark the controller as an api controller (similar to the Rails counterpart), but exposing a middleware toggle that can make it easy to flip at the route level would be nice as well.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request