Learn

Code Challenge

Instructions

1.

Use app.use and the indexExists middleware function for all /data/:index paths.

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?