ExpressJs — Middleware Basics
Middleware functions are functions that have access to the request and response objects. They are used for logging, authentication, parsing request bodies, and more.
app.use((req, res, next) => {
console.log(`${req.method} ${req.url}`);
next();
});