Life cycle
Here is an overview of the journey of the request to the response.
- A request is made to the server
- An initial empty response is passed through global middlewares (before route matching)
- One of your route matched the request
- The response passes through route middlewares (before route rendering)
- The response passes to your route callback (route rendering)
- The response passes through route middlewares (after route rendering)
- The response passes through global middlewares (after route matching)
- The response is returned