Learn
Code Challenge
Instructions
1.
Create two routers - mountainsRouter
and mountainRangesRouter
. Mount them at /mountains
and /mountain-ranges
, respectively.
Create a route handler with mountainsRouter
to send back the mountains
array in response to a GET /mountains request.
Create a route handler with mountainRangesRouter to send back the mountainRanges
array in response to a GET /mountain-ranges request.
Sign up to start coding
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.