aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/site/src/router/index.ts
blob: 38c65fd7f681fb4753ac42786a2c0df74ed5bb45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Composables
import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: () => import('@/views/index/index.vue'),
  },
  {
    path: '/:path(.*)',
    name: '404',
    component: () => import('@/views/404.vue'),
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
})

export default router