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?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too