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
Is it possible to trigger additional, global middle-ware after routes have been run? For instance, if I wanted to inspect all response bodies for certain properties, and alter the response prior to returning according to some logic. Or if I have a number of routes that call to a DB that may return no records, and if any route logic returns null I want to change the status code to 404 and return 'Not Found'.
The text was updated successfully, but these errors were encountered:
Is it possible to trigger additional, global middle-ware after routes have been run? For instance, if I wanted to inspect all response bodies for certain properties, and alter the response prior to returning according to some logic. Or if I have a number of routes that call to a DB that may return no records, and if any route logic returns null I want to change the status code to 404 and return 'Not Found'.
The text was updated successfully, but these errors were encountered: