import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import RegisteredVue from '../views/registered/Registered.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login/Login.vue')
  }, 
  {
    path: '/registered',
    name: 'Registered',
    component:RegisteredVue
  }
  ,{
    path:'',
    redirect:'/home'
  }
]

const router = new VueRouter({
  routes
})

export default router