44 lines
992 B
JavaScript
44 lines
992 B
JavaScript
import {
|
|
publicView,
|
|
publicDaySelectionView,
|
|
publicSlotSelectionView,
|
|
publicContactInfosView,
|
|
publicSlotSelectedView,
|
|
dashboardView } from './views'
|
|
|
|
export default [
|
|
{
|
|
path: '/public/:hash',
|
|
name: 'publicView',
|
|
component: publicView,
|
|
children: [
|
|
{
|
|
path: '',
|
|
name: 'publicDaySelectionView',
|
|
component: publicDaySelectionView
|
|
},
|
|
{
|
|
path: ':day',
|
|
name: 'publicSlotSelectionView',
|
|
component: publicSlotSelectionView
|
|
},
|
|
{
|
|
path: ':day/:timeBegin/:timeEnd',
|
|
name: 'publicContactInfosView',
|
|
component: publicContactInfosView
|
|
},
|
|
{
|
|
path: ':day/:timeBegin/:timeEnd/done',
|
|
name: 'publicSlotSelectedView',
|
|
component: publicSlotSelectedView
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/dashboard',
|
|
alias: '/',
|
|
name: 'dashboard',
|
|
component: dashboardView
|
|
}
|
|
]
|