meetandeat/webroot/js/view.js

11 lines
323 B
JavaScript
Raw Normal View History

2019-03-22 16:35:16 +01:00
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' }
]
})