started routing
This commit is contained in:
+26
-1
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user