Response filters modify the response after the controllers have done their job. Is there a way to have some sort of request filter as well? That could add/alter some data to the request object for all requests, before the request is passed to the contollers?
I can achieve similar functionality by adding my required alterations to some service, and include it in all controllers that need the data. But in some cases I’d like to add this to basically all requests, and such a filter would keep the code tidier.