Our frontend sends a few ajax requests to backend. So even if it's a web? route, we need to return exception as json instead of html page if json requested.
Our frontend sends a few ajax requests to backend. So even if it's a web? route, we need to return exception as json instead of html page if json requested.