1 |
50139
|
myrto.kouk
|
/*
|
2 |
|
|
* created by myrto
|
3 |
|
|
*/
|
4 |
50005
|
myrto.kouk
|
|
5 |
50139
|
myrto.kouk
|
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 { AuthGuardService } from '../../services/auth-guard.service';
|
11 |
50358
|
myrto.kouk
|
import { SrLiteratureComponent } from './sources-register/sr-literature.component';
|
12 |
50221
|
myrto.kouk
|
import { SourcesUpdateRepoComponent } from './sources-update-repo.component';
|
13 |
50259
|
myrto.kouk
|
import { SrDataComponent } from './sources-register/sr-data.component';
|
14 |
50358
|
myrto.kouk
|
import { SrJournalComponent } from './sources-register/sr-journal.component';
|
15 |
|
|
import { SrAggregatorComponent } from './sources-register/sr-aggregator.component';
|
16 |
50139
|
myrto.kouk
|
|
17 |
50005
|
myrto.kouk
|
const sourcesRoutes: Routes = [
|
18 |
|
|
{
|
19 |
51793
|
myrto.kouk
|
path: '',
|
20 |
50005
|
myrto.kouk
|
component: SourcesComponent,
|
21 |
|
|
children: [
|
22 |
|
|
{
|
23 |
|
|
path: 'register',
|
24 |
50139
|
myrto.kouk
|
children: [
|
25 |
|
|
{
|
26 |
|
|
path: '',
|
27 |
|
|
component: SourcesRegisterComponent,
|
28 |
|
|
pathMatch: 'full'
|
29 |
|
|
},
|
30 |
|
|
{
|
31 |
|
|
path: 'literature',
|
32 |
50358
|
myrto.kouk
|
component: SrLiteratureComponent
|
33 |
50139
|
myrto.kouk
|
},
|
34 |
50259
|
myrto.kouk
|
{
|
35 |
|
|
path: 'data',
|
36 |
|
|
component: SrDataComponent
|
37 |
50358
|
myrto.kouk
|
},
|
38 |
|
|
{
|
39 |
|
|
path: 'journal',
|
40 |
|
|
component: SrJournalComponent
|
41 |
|
|
},
|
42 |
|
|
{
|
43 |
|
|
path: 'aggregator',
|
44 |
|
|
component: SrAggregatorComponent
|
45 |
50259
|
myrto.kouk
|
}
|
46 |
50139
|
myrto.kouk
|
]
|
47 |
50025
|
myrto.kouk
|
},
|
48 |
|
|
{
|
49 |
|
|
path: 'update',
|
50 |
50221
|
myrto.kouk
|
children: [
|
51 |
|
|
{
|
52 |
|
|
path: '',
|
53 |
|
|
component: SourcesUpdateComponent
|
54 |
|
|
},
|
55 |
|
|
{
|
56 |
50303
|
myrto.kouk
|
path: ':id',
|
57 |
50221
|
myrto.kouk
|
component: SourcesUpdateRepoComponent
|
58 |
|
|
}
|
59 |
|
|
]
|
60 |
50005
|
myrto.kouk
|
}
|
61 |
|
|
]
|
62 |
|
|
}
|
63 |
|
|
];
|
64 |
|
|
|
65 |
|
|
@NgModule ({
|
66 |
50025
|
myrto.kouk
|
imports: [RouterModule.forChild(sourcesRoutes)],
|
67 |
50005
|
myrto.kouk
|
exports: [RouterModule]
|
68 |
|
|
})
|
69 |
|
|
|
70 |
|
|
export class SourcesRouting {}
|