Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Explain the role of middleware in Express apps... Middleware are functions used to modularize server-side code into specific-task chunks
- ... from the curriculum: Middleware is the organizing principle of Express apps. An Express app is a stack of middleware functions that requests are sent through. Each function in the stack has access to a request object, a response object, and a next function which can be called to pass control to the next middleware function in the stack.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement