aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/router
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2022-10-22 19:07:14 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2022-10-22 19:07:14 +0300
commitd963c3f40f075c05d70af32f44ed2bec8e00bc37 (patch)
tree33a362746201ebec46e7c741e40a530d5f32e38b /frontend/src/router
downloadlphub-d963c3f40f075c05d70af32f44ed2bec8e00bc37.tar.gz
lphub-d963c3f40f075c05d70af32f44ed2bec8e00bc37.tar.bz2
lphub-d963c3f40f075c05d70af32f44ed2bec8e00bc37.zip
init
Diffstat (limited to 'frontend/src/router')
-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