Skip to Content
Learn
Express Routes Code Challenges
Code Challenge

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 mountainRangesHandler to send back the mountainRanges array in response to a GET /mountain-ranges request.

Folder Icon

Sign up to start coding

Already have an account?