11 lines
323 B
JavaScript
11 lines
323 B
JavaScript
|
|
||
|
const router = new VueRouter({
|
||
|
routes: [
|
||
|
{ path: '/date', component: ViewDates, name: "dates" },
|
||
|
{ path: '/date/:id', component: ViewDate, name: "date.show"},
|
||
|
{ path: '/job', component: ViewJobs, name: "job" },
|
||
|
{ path: '/person', component: ViewPersons, name: "person" },
|
||
|
{ path: '/', redirect: '/date' }
|
||
|
]
|
||
|
})
|