2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2019-01-11 18:55:09 +01:00
|
|
|
|
|
|
|
import { AgendaImportListComponent } from './components/agenda-import-list/agenda-import-list.component';
|
2018-10-23 14:20:29 +02:00
|
|
|
import { AgendaListComponent } from './components/agenda-list/agenda-list.component';
|
2019-01-25 16:48:49 +01:00
|
|
|
import { AgendaSortComponent } from './components/agenda-sort/agenda-sort.component';
|
2019-02-21 16:15:21 +01:00
|
|
|
import { ListOfSpeakersComponent } from './components/list-of-speakers/list-of-speakers.component';
|
2019-01-25 16:48:49 +01:00
|
|
|
import { TopicDetailComponent } from './components/topic-detail/topic-detail.component';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
2018-10-23 14:20:29 +02:00
|
|
|
const routes: Routes = [
|
2019-03-08 10:43:54 +01:00
|
|
|
{ path: '', component: AgendaListComponent, pathMatch: 'full' },
|
2019-01-11 18:55:09 +01:00
|
|
|
{ path: 'import', component: AgendaImportListComponent },
|
2018-10-23 14:20:29 +02:00
|
|
|
{ path: 'topics/new', component: TopicDetailComponent },
|
2019-01-25 16:48:49 +01:00
|
|
|
{ path: 'sort-agenda', component: AgendaSortComponent },
|
2019-02-21 16:15:21 +01:00
|
|
|
{ path: 'speakers', component: ListOfSpeakersComponent },
|
2018-10-23 14:20:29 +02:00
|
|
|
{ path: 'topics/:id', component: TopicDetailComponent },
|
2019-02-21 16:15:21 +01:00
|
|
|
{ path: ':id/speakers', component: ListOfSpeakersComponent }
|
2018-10-23 14:20:29 +02:00
|
|
|
];
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AgendaRoutingModule {}
|