-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
enhancementNew feature or requestNew feature or request
Description
In our application, we have a mix of JSON API endpoints and HTML pages.
All of our API endpoints are prefixed with the path /api.
It would be good if we could conditionally return a JSON response for our /api endpoints and a HTML response for all others.
Is it possible to make this configurable? In the interim as workaround, I guess we could subclass your middleware?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Projects
Status
Todo