aboutsummaryrefslogblamecommitdiff
path: root/client/src/router/index.js
blob: 22d739eaeb445d3c9c497cfe52b44355442ee3d1 (plain) (tree)






















                                                          
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