The Middleware Pattern allows you to easily change the input and output of an action; one layer at a time. Read more