Open
Conversation
MadEste
reviewed
Jul 13, 2019
| * ETag →W/"1d-2xgNbPXoy9ff2kjMz+3OfvVkytU" | ||
| * Date →Wed, 03 Jul 2019 01:46:24 GMT (the date and time of the response) | ||
| * Connection →keep-alive | ||
|
|
MadEste
reviewed
Jul 13, 2019
| } | ||
| {} | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Remember app.use gets called every time a request makes it to that point of a route chain.
MadEste
reviewed
Jul 13, 2019
| 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. |
MadEste
reviewed
Jul 13, 2019
| 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. | ||
|
|
There was a problem hiding this comment.
Middleware is the code/application/module that communicates between two systems, such as between servers and databases.
MadEste
reviewed
Jul 13, 2019
| 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. | ||
|
|
MadEste
reviewed
Jul 13, 2019
|
|
||
| * **Your Answer:** | ||
|
|
||
|
|
There was a problem hiding this comment.
This is a module that will enforce AirBNB javascript style standards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.