Express Middleware

A middleware is just like a function and generally takes 3 parameters. These are loaded with code that could manipulate the parameters that are passed. The parameter used in any middleware is the request object,  the response object, and the next function or middleware which are more commonly denoted as req, res, and next respectively.  Generally, middleware is used when we would want to perform some operation before sending the data back to the client. Now let’s set up our …