import { createRouter, createWebHistory } from 'vue-router';
const router = createRouter({
history: createWebHistory(),
routes: [{
path: "/products",
component: ProductList,},
{
path: '/products/:id',
component: ProductItem
},
{
path: "/cart",
component: CartList,
},
,
{
path: '/:pathMatch(.)',
component: NotFound
}
],});