Project Challenge: Create Dynamic Route for Pet Details

In this lesson, we will create a new route that will show the details of an individual pet.

Problem statement #

In this challenge, you are expected to create a new route in your application. This route should be at the URL: "/details/pet_id", where pet_id is a valid pet’s id. It should return a web page containing all info regarding that pet. Moreover, you also have to update the home page such that clicking a pet’s image redirects to its details page.

Get hands-on with 1400+ tech skills courses.