Add a pipe to call a function every request