mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-26 02:04:52 +01:00
36 lines
733 B
JavaScript
Vendored
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,
|
|
}); |