Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Review the Routes

Our REST API contains two routes (formatted in the following way: HTTP METHOD Route Response HTTP Status Code):

  • GET /api/users 200 - Returns a list of user accounts.
  • POST /api/users 201 - Creates a new user account.

Both routes are defined using an Express Router in the routes module ( routes.js).

Open the app.js file. The router is imported from the `...