cozy-rsvp/app/routes.js

44 lines
992 B
JavaScript
Raw Normal View History

2016-11-07 02:51:21 +01:00
import {
publicView,
publicDaySelectionView,
publicSlotSelectionView,
publicContactInfosView,
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
},
{
2016-11-07 02:51:21 +01:00
path: ':day/:timeBegin/:timeEnd',
name: 'publicContactInfosView',
component: publicContactInfosView
},
{
path: ':day/:timeBegin/:timeEnd/done',
2016-11-06 02:31:32 +01:00
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
}
]