import { Routes } from '@angular/router'
import { EventsComponent } from './events.component'
import { EventDetailsComponent } from './event-details/event-details.component'

export default [
  {
    path: '',
    component: EventsComponent
  },
  {
    path: ':eventId',
    component: EventDetailsComponent,
    children: [
      {
        path: 'register-eventuser',
        loadComponent: () =>
          import('./event-details/+register-event/register-event.component')
            .then(m => m.RegisterEventComponent)
      }
    ]
  }
] as Routes
