aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/router/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/router/index.ts')
-rw-r--r--frontend/src/router/index.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
new file mode 100644
index 0000000..a49ae50
--- /dev/null
+++ b/frontend/src/router/index.ts
@@ -0,0 +1,23 @@
1import { createRouter, createWebHistory } from 'vue-router'
2import HomeView from '../views/HomeView.vue'
3
4const router = createRouter({
5 history: createWebHistory(import.meta.env.BASE_URL),
6 routes: [
7 {
8 path: '/',
9 name: 'home',
10 component: HomeView
11 },
12 {
13 path: '/about',
14 name: 'about',
15 // route level code-splitting
16 // this generates a separate chunk (About.[hash].js) for this route
17 // which is lazy-loaded when the route is visited.
18 component: () => import('../views/AboutView.vue')
19 }
20 ]
21})
22
23export default router