Code Challenge



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.

Sign up to start coding

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?