
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

import Home from './Home.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('./About.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('./Login.vue')
  }
]

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

export default router
