reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 401: Class 03 - Express REST API


Questions

  1. Cases where you would want to change the request with custom middleware:

2.The route handler is middleware: False, functions that only use req & res are simply handlers.

3.How can a middleware end a function and send data to the client?

4.At what point in the request lifecycle can you “inject” middleware?

5.What causes: “Request headers sent twice, cannot start a second response”?

Vocabulary

Read: Review: ES6 Classes


class Rectangle {
  constructor (height, width) {
    this.height = height;
    this.width = width;
  })
}


let Rectangle = class Rectangle2 {
  constructor(height, width) {
    this.height = height;
    this.width = width;
  }
}

Read: Using Express Routing

Read: Express Routing


Return to reading-notes Deployed Site

Return to reading-notes Mark Down