Skip to Content
Learn
Express Middleware Code Challenges
Code Challenge

Code Challenge

Instructions

1.

Use Router.param to DRY this appleRouter. Attach the apple variety to the request body if it exists, send a 404 response if it does not. In each individual route, send the appropriate property from that apple object.

Folder Icon

Sign up to start coding

Already have an account?