feat: add Categories
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import {createRouter, createWebHistory} from 'vue-router';
|
||||
import Home from './views/Home.vue';
|
||||
import Product from './views/Product.vue';
|
||||
import CategoriesList from "./views/CategoriesList.vue";
|
||||
import ProductsList from "./views/ProductsList.vue";
|
||||
|
||||
const routes = [
|
||||
{path: '/', component: Home},
|
||||
{path: '/product/:id', component: Product},
|
||||
{path: '/categories', component: CategoriesList},
|
||||
{path: '/category/:id', component: ProductsList},
|
||||
];
|
||||
|
||||
export const router = createRouter({
|
||||
|
||||
Reference in New Issue
Block a user