funky-framadate-front/src/app/features/administration/administration-routing.modu...

44 lines
1.6 KiB
TypeScript
Raw Normal View History

2020-04-22 12:56:18 +02:00
import { NgModule } from '@angular/core';
2020-05-01 19:10:17 +02:00
import { RouterModule, Routes } from '@angular/router';
2020-04-22 12:56:18 +02:00
import { AdministrationComponent } from './administration.component';
2021-11-07 14:52:49 +01:00
import { StepTwoComponent } from './form/steps/step-two/step-two.component';
import { StepThreeComponent } from './form/steps/step-three/step-three.component';
import { StepFourComponent } from './form/steps/step-four/step-four.component';
import { StepFiveComponent } from './form/steps/step-five/step-five.component';
import { StepOneComponent } from './form/steps/step-one/step-one.component';
2021-11-12 15:59:44 +01:00
import { SuccessComponent } from './success/success.component';
import { AdminConsultationComponent } from './consultation/consultation.component';
import { StepSixComponent } from './form/steps/step-six/step-six.component';
import { StepSevenComponent } from './form/steps/step-seven/step-seven.component';
2020-04-22 12:56:18 +02:00
2020-10-17 11:12:53 +02:00
const routes: Routes = [
2021-11-07 14:52:49 +01:00
{
path: '',
component: AdministrationComponent,
},
2021-11-12 15:59:44 +01:00
{ path: 'key/:admin_key', component: AdminConsultationComponent },
2021-11-07 14:52:49 +01:00
{
path: 'step',
children: [
{ path: '1', component: StepOneComponent },
{ path: '2', component: StepTwoComponent },
{ path: '3', component: StepThreeComponent },
{ path: '4', component: StepFourComponent },
{ path: '5', component: StepFiveComponent },
{ path: '6', component: StepSixComponent },
{ path: '7', component: StepSevenComponent },
2021-11-07 14:52:49 +01:00
],
},
2021-11-12 15:59:44 +01:00
{
path: 'success',
component: SuccessComponent,
},
2020-10-17 11:12:53 +02:00
];
2020-04-22 12:56:18 +02:00
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class AdministrationRoutingModule {}