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

import Home from './view/Home.vue'
<<<<<<< HEAD
import PersonalData from './view/PersonalData.vue'
=======
import Cart from './view/Cart.vue'
>>>>>>> origin

const routes = [
    {
        path: '/',
        name: 'root',
        redirect: 'home'
    },
    {
        path: '/home',
        component: Home,
        name: 'home'
    },
    {
<<<<<<< HEAD
        path: '/datosPersonales',
        component: PersonalData,
        name: 'personalData'
=======
        path: '/cart',
        component: Cart,
        name: 'cart'
>>>>>>> origin
    }
]

Vue.use(VueRouter)
    /* Produccción */
    // const router = new VueRouter({mode: 'history', routes})
    /* Pruebas */
const router = new VueRouter({ routes })

export default router;