aboutsummaryrefslogtreecommitdiff
path: root/client/src/router/index.js
blob: 22d739eaeb445d3c9c497cfe52b44355442ee3d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {createRouter, createWebHistory} from 'vue-router';
import Home from '../views/Home.vue';
import ExamplePage from '../views/ExamplePage.vue';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/example',
    name: 'Example',
    component: ExamplePage
  }
]

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

export default router