Tell us what’s happening:
I didn’t understand what is a middleware function. Can anyone explain to me in simple words?
Challenge: Implement a Root-Level Request Logger Middleware
Link to the challenge:
Tell us what’s happening:
I didn’t understand what is a middleware function. Can anyone explain to me in simple words?
Challenge: Implement a Root-Level Request Logger Middleware
Link to the challenge:
Middleware function is normally any function applied between request and response in the systems where middleware functionality is present and is pluggable. app.use()
in Express will plug the middleware in, including built-in router
or external bodyParser
etc etc… You can write your own custom middleware to use()
in your Express app.