Skip to content

Route level configurable error handler #12

@tswayne

Description

@tswayne

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions