You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to limit the execution of the transformation to a route regular expression like ^/api/? So the transformation of the exceptions wouldn't occur on other places of the application which sometimes might throw an HttpException when accepting application/json but shouldn't be transformed.
This might be usefull for some applications which are not yet fully based on api's, or for some who want to migrate to newly structured api's
The text was updated successfully, but these errors were encountered:
Sound like a solid idea!
Maybe best to inject a RequestMatcherInterface into the listener so that you can do whatever matching you want.
I would surely accept a PR for that.
Would it be possible to limit the execution of the transformation to a route regular expression like
^/api/
? So the transformation of the exceptions wouldn't occur on other places of the application which sometimes might throw an HttpException when accepting application/json but shouldn't be transformed.This might be usefull for some applications which are not yet fully based on api's, or for some who want to migrate to newly structured api's
The text was updated successfully, but these errors were encountered: