import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/tow/:id',
    name: 'Tow',
    component: () => import('../views/Tow.vue')
  },
  {
    path: '/three/:id',
    name: 'Three',
    component: () => import('../views/Three.vue')
  },
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router