Closed github-learning-lab[bot] closed 4 years ago
With this last push, your repository should look like this.
💡 You can use dynamic variables to search for specific data associated with an id in your database, and return that (instead of just returning the id).
Now that our server is listening for requests being made on localhost:8000 let's return some mock JSON data. Add the following to your server.js file:
Overall your file should look like this:
Let's save your changes on GitHub: