2020-05-12 19:16:23 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
|
|
|
import { ConsultationComponent } from './consultation.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', redirectTo: 'poll', pathMatch: 'full' },
|
|
|
|
{ path: ':slug', redirectTo: 'poll/:slug', pathMatch: 'full' },
|
2020-06-16 18:40:48 +02:00
|
|
|
{ path: 'poll', component: ConsultationComponent },
|
2020-05-12 19:16:23 +02:00
|
|
|
{ path: 'poll/:slug', component: ConsultationComponent },
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule],
|
|
|
|
})
|
|
|
|
export class ConsultationRoutingModule {}
|