Concept Flow - Creating middleware
Request enters app
Middleware invoked
Middleware checks condition
Allow request
Controller runs
Response returns to client
The request passes through middleware which checks conditions and either allows it to continue or blocks it.