Concept Flow - Global middleware
Start Application
Register Global Middleware
Incoming Request
Global Middleware Executes
Pass to Route Handler
Send Response
End Request
The app starts, global middleware is registered, then for every request the middleware runs before the route handler, finally the response is sent.