2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2018-12-04 19:31:24 +01:00
|
|
|
|
2018-11-04 11:11:48 +01:00
|
|
|
import { AmendmentCreateWizardComponent } from './components/amendment-create-wizard/amendment-create-wizard.component';
|
2018-12-04 19:31:24 +01:00
|
|
|
import { CallListComponent } from './components/call-list/call-list.component';
|
|
|
|
import { CategoryListComponent } from './components/category-list/category-list.component';
|
2019-02-05 13:45:58 +01:00
|
|
|
import { CategorySortComponent } from './components/category-sort/category-sort.component';
|
2018-12-06 12:28:05 +01:00
|
|
|
import { MotionBlockListComponent } from './components/motion-block-list/motion-block-list.component';
|
|
|
|
import { MotionBlockDetailComponent } from './components/motion-block-detail/motion-block-detail.component';
|
2018-12-04 19:31:24 +01:00
|
|
|
import { MotionCommentSectionListComponent } from './components/motion-comment-section-list/motion-comment-section-list.component';
|
|
|
|
import { MotionDetailComponent } from './components/motion-detail/motion-detail.component';
|
|
|
|
import { MotionImportListComponent } from './components/motion-import-list/motion-import-list.component';
|
|
|
|
import { MotionListComponent } from './components/motion-list/motion-list.component';
|
2019-01-31 11:21:02 +01:00
|
|
|
import { StatuteImportListComponent } from './components/statute-paragraph-list/statute-import-list/statute-import-list.component';
|
2018-12-04 19:31:24 +01:00
|
|
|
import { StatuteParagraphListComponent } from './components/statute-paragraph-list/statute-paragraph-list.component';
|
2019-02-07 16:36:33 +01:00
|
|
|
import { WorkflowListComponent } from './components/workflow-list/workflow-list.component';
|
|
|
|
import { WorkflowDetailComponent } from './components/workflow-detail/workflow-detail.component';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
2018-08-09 16:03:24 +02:00
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', component: MotionListComponent },
|
2018-08-27 09:07:59 +02:00
|
|
|
{ path: 'category', component: CategoryListComponent },
|
2019-02-05 13:45:58 +01:00
|
|
|
{ path: 'category/:id', component: CategorySortComponent },
|
2018-10-01 15:36:16 +02:00
|
|
|
{ path: 'comment-section', component: MotionCommentSectionListComponent },
|
2018-10-12 11:05:24 +02:00
|
|
|
{ path: 'statute-paragraphs', component: StatuteParagraphListComponent },
|
2019-01-31 11:21:02 +01:00
|
|
|
{ path: 'statute-paragraphs/import', component: StatuteImportListComponent },
|
2018-11-08 17:38:44 +01:00
|
|
|
{ path: 'call-list', component: CallListComponent },
|
2018-12-06 12:28:05 +01:00
|
|
|
{ path: 'blocks', component: MotionBlockListComponent },
|
|
|
|
{ path: 'blocks/:id', component: MotionBlockDetailComponent },
|
2018-08-21 14:56:26 +02:00
|
|
|
{ path: 'new', component: MotionDetailComponent },
|
2018-12-04 19:31:24 +01:00
|
|
|
{ path: 'import', component: MotionImportListComponent },
|
2019-02-07 16:36:33 +01:00
|
|
|
{ path: 'workflow', component: WorkflowListComponent },
|
|
|
|
{ path: 'workflow/:id', component: WorkflowDetailComponent },
|
2018-10-23 14:20:29 +02:00
|
|
|
{ path: ':id', component: MotionDetailComponent },
|
2018-11-04 11:11:48 +01:00
|
|
|
{ path: ':id/create-amendment', component: AmendmentCreateWizardComponent }
|
2018-08-09 16:03:24 +02:00
|
|
|
];
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class MotionsRoutingModule {}
|