import { RouterModule , Routes } from '@angular/router' ; import { NgModule } from '@angular/core' ; import { ShareComponent } from './share.component' ; import { NotFoundComponent } from '../pages/miscellaneous/not-found/not-found.component' ; const routes = [ { path : '' , component : ShareComponent , children : [ { path : '' , redirectTo : 'organization' , pathMatch : 'full' } , { path : 'organization/:link' , loadChildren : ( ) => import ( './organization/organization.module' ) . then ( ( m ) => m . OrganizationModule ) } , { path : 'employee/edit-appointment' , loadChildren : ( ) => import ( './public-appointments/edit-appointment/edit-appointment.module' ) . then ( ( m ) => m . EditAppointmentModule ) } , { path : 'employee' , loadChildren : ( ) => import ( './public-appointments/pick-employee/pick-employee.module' ) . then ( ( m ) => m . PickEmployeeModule ) } , { path : 'employee/:id' , loadChildren : ( ) => import ( './public-appointments/public-appointments.module' ) . then ( ( m ) => m . PublicAppointmentsModule ) } , { path : 'employee/:id/confirm/:appointmentId' , loadChildren : ( ) => import ( './public-appointments/confirm-appointment/confirm-appointment.module' ) . then ( ( m ) => m . ConfirmAppointmentModule ) } , { path : 'employee/:employeeid/create-appointment' , loadChildren : ( ) => import ( './public-appointments/appointment-form/appointment-form.module' ) . then ( ( m ) => m . AppointmentFormModule ) } , { path : 'employee/:id/:eventId' , loadChildren : ( ) => import ( './public-appointments/create-appointment/create-appointment.module' ) . then ( ( m ) => m . CreateAppointmentModule ) } , { path : 'invoices/:id/:token' , loadChildren : ( ) => import ( './invoices-estimates/invoice-estimate.module' ) . then ( ( m ) => m . InvoiceEstimateModule ) } , { path : 'estimates/:id/:token' , loadChildren : ( ) => import ( './invoices-estimates/invoice-estimate.module' ) . then ( ( m ) => m . InvoiceEstimateModule ) } , { path : '**' , component : NotFoundComponent } ] } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class ShareRoutingModule { }