Skip to content

Initial answers#25

Open
mikeshhoffman wants to merge 1 commit intopce-uw-jscript400:masterfrom
mikeshhoffman:master
Open

Initial answers#25
mikeshhoffman wants to merge 1 commit intopce-uw-jscript400:masterfrom
mikeshhoffman:master

Conversation

@mikeshhoffman
Copy link

No description provided.

* ETag →W/"1d-2xgNbPXoy9ff2kjMz+3OfvVkytU"
* Date →Wed, 03 Jul 2019 01:46:24 GMT (the date and time of the response)
* Connection →keep-alive

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}
{}
```

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember app.use gets called every time a request makes it to that point of a route chain.

typeof shows that `app` is a function (it happens to be an EventEmitter).
The `app` function has various functions, mostly for creating routes.

`app` initializes the node.js server.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Middleware is not run if a route above it matches.

It could be at the top of the server pipeline, eg for logging. Authentication could be used for only certain routes, if use is put in-between routes.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Middleware is the code/application/module that communicates between two systems, such as between servers and databases.

if there's not all the required keys, or
if there are no extra keys,
this function goes to the next error handler in the pipeline.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


* **Your Answer:**


Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a module that will enforce AirBNB javascript style standards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants