2FAuth/resources/js/app.js
2019-05-28 17:29:15 +02:00

36 lines
733 B
JavaScript
Vendored

import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import App from './views/App'
import Login from './views/Login'
import Register from './views/Register'
import Home from './views/Welcome'
const router = new VueRouter({
mode: 'history',
routes: [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/login',
name: 'login',
component: Login,
},
{
path: '/register',
name: 'register',
component: Register,
},
],
});
const app = new Vue({
el: '#app',
components: { App },
router,
});