cozy-rsvp/app/routes.js

33 lines
768 B
JavaScript
Raw Normal View History

2016-11-06 02:31:32 +01:00
import { publicView, publicDaySelectionView, publicSlotSelectionView, publicSlotSelectedView, dashboardView } from './views'
2016-11-04 20:33:20 +01:00
export default [
{
2016-11-05 03:52:53 +01:00
path: '/public/:hash',
2016-11-06 02:31:32 +01:00
name: 'publicView',
component: publicView,
children: [
{
path: '',
name: 'publicDaySelectionView',
component: publicDaySelectionView
},
{
path: ':day',
name: 'publicSlotSelectionView',
component: publicSlotSelectionView
},
{
path: ':day/:slot',
name: 'publicSlotSelectedView',
component: publicSlotSelectedView
}
]
2016-11-04 20:33:20 +01:00
},
{
path: '/dashboard',
2016-11-05 03:52:53 +01:00
alias: '/',
2016-11-06 02:31:32 +01:00
name: 'dashboard',
2016-11-04 20:33:20 +01:00
component: dashboardView
}
]