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';
|
2021-11-18 09:42:00 +01:00
|
|
|
import { ConsultationLandingComponent } from './consultation-landing/consultation-landing.component';
|
|
|
|
import { SuccessComponent } from './success/success.component';
|
|
|
|
import { ConsultationUserComponent } from './consultation-user/consultation-user.component';
|
2021-11-18 12:51:59 +01:00
|
|
|
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: '',
|
2022-02-08 13:05:47 +01:00
|
|
|
component: ConsultationComponent,
|
2021-04-29 10:17:13 +02:00
|
|
|
},
|
2021-11-18 12:51:59 +01:00
|
|
|
{ path: 'simple', component: ConsultationComponent },
|
2021-11-18 09:42:00 +01:00
|
|
|
{ path: 'secure/:pass_hash', component: ConsultationComponent },
|
|
|
|
{ path: 'prompt', component: PasswordPromptComponent },
|
|
|
|
{ path: 'table', component: WipTodoComponent },
|
2022-02-07 11:42:25 +01:00
|
|
|
{ path: 'vote', component: EditComponent },
|
2022-02-07 16:12:32 +01:00
|
|
|
{ path: 'vote/user-infos', component: ConsultationUserComponent },
|
2022-02-07 11:42:25 +01:00
|
|
|
{ path: 'edit/:voteStackId', component: EditComponent },
|
2021-11-18 09:42:00 +01:00
|
|
|
{ path: 'success', component: SuccessComponent },
|
2021-11-18 12:51:59 +01:00
|
|
|
{ path: 'page-not-found', component: PageNotFoundComponent },
|
|
|
|
{ path: '**', redirectTo: 'page-not-found', pathMatch: 'full' },
|
2020-05-12 19:16:23 +02:00
|
|
|
];
|
2021-11-18 12:51:59 +01:00
|
|
|
|
2020-05-12 19:16:23 +02:00
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule],
|
|
|
|
})
|
|
|
|
export class ConsultationRoutingModule {}
|