What you will add
- one global middleware
- one before hook
- one after hook
Step 1: Add middleware
Step 2: Add hooks
How to think about it
- middleware changes or controls execution flow
- before hooks observe work before the handler runs
- after hooks observe successful results and may replace them