funky-framadate-front/src/app/features/consultation/consultation-routing.module.ts

35 lines
1.5 KiB
TypeScript
Raw Normal View History

2020-05-12 19:16:23 +02:00
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ConsultationComponent } from './consultation.component';
2021-06-10 10:52:32 +02:00
import { WipTodoComponent } from '../../shared/components/ui/wip-todo/wip-todo.component';
2021-06-10 12:20:28 +02:00
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';
import { PageNotFoundComponent } from '../../shared/components/page-not-found/page-not-found.component';
2022-02-07 11:42:25 +01:00
import { EditComponent } from './edit/edit.component';
2020-05-12 19:16:23 +02:00
const routes: Routes = [
2021-04-29 10:17:13 +02:00
{
2021-04-29 10:41:47 +02:00
path: '',
component: ConsultationLandingComponent,
2021-04-29 10:17:13 +02:00
},
{ path: 'simple', component: ConsultationComponent },
{ path: 'secure/:pass_hash', component: ConsultationComponent },
{ path: 'prompt', component: PasswordPromptComponent },
{ path: 'table', component: WipTodoComponent },
{ path: 'user-info', component: ConsultationUserComponent },
2022-02-07 11:42:25 +01:00
{ path: 'vote', component: EditComponent },
{ path: 'edit/:voteStackId', component: EditComponent },
{ path: 'success', component: SuccessComponent },
{ path: 'page-not-found', component: PageNotFoundComponent },
{ path: '**', redirectTo: 'page-not-found', pathMatch: 'full' },
2020-05-12 19:16:23 +02:00
];
2020-05-12 19:16:23 +02:00
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class ConsultationRoutingModule {}