Middleware

This might be a scare subject for most, but middleware gives you so much flexibility if you need to implement functionality that needs to be handled on every request, or on a group of requests.

Do not make middleware if you only need the functionality on a single request and you might never need to extend it to more requests.

This is obviously up to your discretion but use it wisely, with great power come great responsibility.