31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { ConsultationComponent } from './consultation.component';
|
|
import { WipTodoComponent } from '../../shared/components/ui/wip-todo/wip-todo.component';
|
|
import { PasswordPromptComponent } from './password/password-prompt/password-prompt.component';
|
|
import { ConsultationLandingComponent } from './consultation-landing/consultation-landing.component';
|
|
import { SuccessComponent } from './success/success.component';
|
|
import { ConsultationUserComponent } from './consultation-user/consultation-user.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: ConsultationLandingComponent,
|
|
children: [],
|
|
},
|
|
|
|
{ path: 'secure/:pass_hash', component: ConsultationComponent },
|
|
{ path: 'prompt', component: PasswordPromptComponent },
|
|
{ path: 'simple', component: WipTodoComponent },
|
|
{ path: 'table', component: WipTodoComponent },
|
|
|
|
{ path: 'user-info', component: ConsultationUserComponent },
|
|
{ path: 'success', component: SuccessComponent },
|
|
];
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class ConsultationRoutingModule {}
|