What is a Middleware?
A middleware comes in the middle of the request and response cycle. In simple words, it is the code that runs before handling the request to the server. It is mainly used for the verification of requests and routing them to the resource it is appropriate.