2019-05-28 17:29:15 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
import VueRouter from 'vue-router'
|
2019-05-20 07:37:41 +02:00
|
|
|
|
2019-05-28 17:29:15 +02:00
|
|
|
Vue.use(VueRouter)
|
2019-05-20 07:37:41 +02:00
|
|
|
|
2019-05-28 17:29:15 +02:00
|
|
|
import App from './views/App'
|
|
|
|
import Login from './views/Login'
|
|
|
|
import Register from './views/Register'
|
|
|
|
import Home from './views/Welcome'
|
2019-05-20 07:37:41 +02:00
|
|
|
|
2019-05-28 17:29:15 +02:00
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'home',
|
|
|
|
component: Home
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: 'login',
|
|
|
|
component: Login,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/register',
|
|
|
|
name: 'register',
|
|
|
|
component: Register,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|
2019-05-20 07:37:41 +02:00
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
el: '#app',
|
2019-05-28 17:29:15 +02:00
|
|
|
components: { App },
|
|
|
|
router,
|
|
|
|
});
|