Fix the add routes when there are no types defined

Routes are not correct and produce an error when there are no types defined for products and orders, store entity is fine.