EXPRESS HELLO WORLD Flashcards
1
Q
How do you mount a middleware with an Express application?
A
use(function(parameter))
app.use((req, res, next) => {
2
Q
Which objects does an Express application pass to your middleware to manage the request/response lifecycle of the server?
A
request & response object
request message - data model
response message - control
{request.method}
{request.url}
{request.headers}