Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Express Basics!
You have completed Express Basics!
Preview
Improve the applications links.
Testing in Node
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
In the cards.js file I first created
a new route using the router.get method.
0:00
Remember because we're inside a router
that is mounted in the cards route.
0:05
In the app.js file We don't need to
start any of our URLs with cards.
0:10
After creating this route,
0:20
I've first needed the total number
of cards we have to choose from.
0:21
I could have counted the cards manually
0:26
from the JSON file that
we're pulling the data from.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up