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 REST APIs with Express!
You have completed REST APIs with Express!
Preview
In this video, we'll add functionality to our app that will allow the client to delete quotes.
This video doesn't have any notes.
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
To create a delete route,
0:00
we'll want to handle delete requests
sent to the slash quote slash ID route.
0:00
Again, we'll need the callback to be
an asynchronous function that takes in
0:09
the request and response objects.
0:12
And to use the async await syntax,
0:19
we'll need a try-catch block.bbb
Inside the catch block,
0:22
we'll copy and paste the same error
handling code from previous videos.
0:27
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