import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: ' ',
    component: Home
  },
  {
    path: '/register',
    name: 'register',
    component: (resolve) => require(['../views/register'], resolve)
  },
  {
    path: '/contact',
    name: 'contact',
    component: (resolve) => require(['../views/contact'], resolve)
  }
]

const router = new VueRouter({
  mode:'history',
  routes
})

export default router
