Skip to content

Dynamic Routes


Challenge

Insead of manually creating a route for every team member, render the team member pages dynamically by fetching them from the following endpoint.

This endpoint should return a JSON response like this 👇

{"id":1,"name":"Michael Scott","title":"Regional manager"},

The following routes will need to be updated

  • /team/michael -> /team/1
  • /team/jim -> /team/2
  • /team/pam -> /team/3
  • /team/dwight -> /team/4

demo

Demo site