I look in several places and I didn't found a way to overwrite params that comes in the request using middleware with Slim in PHP.
Use case: I want to scape all the query params that come into all my endpoint but I don't wanna write the same code everywhere, so the idea was to use the middleware that slim provides and clean the param there.
Is this a thing and can be done?