1
|
/*
|
2
|
* created by myrto
|
3
|
*/
|
4
|
|
5
|
import { RouterModule, Routes } from '@angular/router';
|
6
|
import { NgModule } from '@angular/core';
|
7
|
import { SourcesComponent } from './sources.component';
|
8
|
import { SourcesRegisterComponent } from './sources-register.component';
|
9
|
import { SourcesUpdateComponent } from './sources-update.component';
|
10
|
import { SrLiteratureComponent } from './sources-register/sr-literature.component';
|
11
|
import { SourcesUpdateRepoComponent } from './sources-update-repo.component';
|
12
|
import { SrDataComponent } from './sources-register/sr-data.component';
|
13
|
import { SrJournalComponent } from './sources-register/sr-journal.component';
|
14
|
import { SrAggregatorComponent } from './sources-register/sr-aggregator.component';
|
15
|
|
16
|
const sourcesRoutes: Routes = [
|
17
|
{
|
18
|
path: '',
|
19
|
component: SourcesComponent,
|
20
|
children: [
|
21
|
{
|
22
|
path: 'register',
|
23
|
children: [
|
24
|
{
|
25
|
path: '',
|
26
|
component: SourcesRegisterComponent
|
27
|
},
|
28
|
{
|
29
|
path: 'literature',
|
30
|
component: SrLiteratureComponent
|
31
|
},
|
32
|
{
|
33
|
path: 'data',
|
34
|
component: SrDataComponent
|
35
|
},
|
36
|
{
|
37
|
path: 'journal',
|
38
|
component: SrJournalComponent
|
39
|
},
|
40
|
{
|
41
|
path: 'aggregator',
|
42
|
component: SrAggregatorComponent
|
43
|
}
|
44
|
]
|
45
|
},
|
46
|
{
|
47
|
path: 'update',
|
48
|
children: [
|
49
|
{
|
50
|
path: '',
|
51
|
component: SourcesUpdateComponent
|
52
|
},
|
53
|
{
|
54
|
path: ':id',
|
55
|
component: SourcesUpdateRepoComponent
|
56
|
}
|
57
|
]
|
58
|
}
|
59
|
]
|
60
|
}
|
61
|
];
|
62
|
|
63
|
@NgModule ({
|
64
|
imports: [RouterModule.forChild(sourcesRoutes)],
|
65
|
exports: [RouterModule]
|
66
|
})
|
67
|
|
68
|
export class SourcesRouting {}
|