Writing MiddlewaresMore ExamplesMore ExamplesCheck the code for existing middlewares to see more examples on how to write a middleware.