vikunja-frontend/src/router/index.js

42 lines
893 B
JavaScript
Raw Normal View History

import Vue from 'vue'
import Router from 'vue-router'
import HomeComponent from '@/components/Home'
2018-09-08 22:27:13 +02:00
// User Handling
import LoginComponent from '@/components/user/Login'
import RegisterComponent from '@/components/user/Register'
2018-09-08 23:33:23 +02:00
// List Handling
import ShowListComponent from '@/components/lists/ShowList'
2018-09-09 21:28:07 +02:00
import NewListComponent from '@/components/lists/NewList'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'home',
component: HomeComponent
},
{
path: '/login',
name: 'login',
component: LoginComponent
2018-09-08 22:27:13 +02:00
},
{
path: '/register',
name: 'register',
component: RegisterComponent
2018-09-08 23:33:23 +02:00
},
{
path: '/lists/:id',
name: 'showList',
component: ShowListComponent
2018-09-09 21:28:07 +02:00
},
{
path: '/namespaces/:id',
name: 'newList',
component: NewListComponent
}
]
})