wip: cart
This commit is contained in:
@@ -3,12 +3,14 @@ import Home from './views/Home.vue';
|
||||
import Product from './views/Product.vue';
|
||||
import CategoriesList from "./views/CategoriesList.vue";
|
||||
import ProductsList from "./views/ProductsList.vue";
|
||||
import Cart from "./views/Cart.vue";
|
||||
|
||||
const routes = [
|
||||
{path: '/', name: 'home', component: Home},
|
||||
{path: '/product/:id', name: 'product.show', component: Product},
|
||||
{path: '/categories', name: 'categories', component: CategoriesList},
|
||||
{path: '/category/:id', name: 'category.show', component: ProductsList},
|
||||
{path: '/cart', name: 'cart.show', component: Cart},
|
||||
];
|
||||
|
||||
export const router = createRouter({
|
||||
|
||||
Reference in New Issue
Block a user