Middleware functions are functions that have access to the request object (req), the response object (res), and the next middleware function in the application’s request-response cycle.
Middleware functions can execute any code, make changes to res and req objects, end response cycle and call next ...