From 8234345a00d14fee2b5ca18466f19d2df4b4a5c7 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 2 Feb 2022 12:34:38 +0530 Subject: Initial commit - Initialize the project with PrimeVue for UI. --- client/src/router/index.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 client/src/router/index.js (limited to 'client/src/router') diff --git a/client/src/router/index.js b/client/src/router/index.js new file mode 100644 index 0000000..4300a69 --- /dev/null +++ b/client/src/router/index.js @@ -0,0 +1,25 @@ +import { createRouter, createWebHistory } from 'vue-router' +import Home from '../views/Home.vue' + +const routes = [ + { + path: '/', + name: 'Home', + component: Home + }, + { + path: '/about', + name: 'About', + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') + } +] + +const router = createRouter({ + history: createWebHistory(process.env.BASE_URL), + routes +}) + +export default router -- cgit 1.4.1-2-gfad0