Setting up the add Route

Learn to set up the add route of our e-commerce web application.

The add route is responsible for adding new products. Let’s implement the add route template in our application.

Setting up the add.hbs template

A product will have a title, description, price, category, and an image. We’ll create a form to input all these fields from the admin. Let’s open our add route template in the code widget below to add a form:

Get hands-on with 1400+ tech skills courses.