diff options
author | Andinus <andinus@nand.sh> | 2022-02-02 12:34:38 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2022-02-02 13:03:34 +0530 |
commit | 8234345a00d14fee2b5ca18466f19d2df4b4a5c7 (patch) | |
tree | 772fc64f448c000df6ae6bea5387b469c82fa75f /client/src/router | |
download | vela-8234345a00d14fee2b5ca18466f19d2df4b4a5c7.tar.gz |
Initial commit
- Initialize the project with PrimeVue for UI.
Diffstat (limited to 'client/src/router')
-rw-r--r-- | client/src/router/index.js | 25 |
1 files changed, 25 insertions, 0 deletions
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 |