started routing

This commit is contained in:
2019-07-19 16:57:22 +02:00
parent 01e4d99537
commit 5985796166
8 changed files with 140 additions and 13 deletions
+26 -1
View File
@@ -2,17 +2,42 @@ import Vue from 'vue'
import Router from 'vue-router'
import Home from 'pages/Home'
import Nominum from 'pages/Nominum'
import Locorum from 'pages/Locorum'
import Operum from 'pages/Operum'
import Bibliographie from 'pages/Bibliographie'
Vue.use(Router)
const routes = [
{
name: 'home',
path: '*',
path: '/',
component: Home
},
{
name: 'nominum',
path: '/nominum',
component: Nominum
},
{
name: 'locorum',
path: '/locorum',
component: Locorum
},
{
name: 'operum',
path: '/operum',
component: Operum
},
{
name: 'bibliographie',
path: '/bibliographie',
component: Bibliographie
}
]
export default new Router({
mode: 'history',
routes
})