1
0

Added basic classes to handle http/auth/routing

This commit is contained in:
kolaente
2018-09-06 19:46:09 +02:00
parent f5f5c6f79c
commit fe86ce2fa8
8 changed files with 167 additions and 20 deletions

22
src/router/index.js Normal file
View File

@ -0,0 +1,22 @@
import Vue from 'vue'
import Router from 'vue-router'
import HomeComponent from '@/components/Home'
import LoginComponent from '@/components/Login'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'home',
component: HomeComponent
},
{
path: '/login',
name: 'login',
component: LoginComponent
}
]
})