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 { AuthGuardService } from '../../services/auth-guard.service';
|
11
|
import { SRLiteratureComponent } from './sources-register/sr-literature.component';
|
12
|
import { SourcesUpdateRepoComponent } from './sources-update-repo.component';
|
13
|
|
14
|
const sourcesRoutes: Routes = [
|
15
|
{
|
16
|
path: 'sources',
|
17
|
component: SourcesComponent,
|
18
|
// canActivate: [AuthGuardService],
|
19
|
children: [
|
20
|
{
|
21
|
path: '',
|
22
|
redirectTo: '/register',
|
23
|
pathMatch: 'full'
|
24
|
},
|
25
|
{
|
26
|
path: 'register',
|
27
|
children: [
|
28
|
{
|
29
|
path: '',
|
30
|
component: SourcesRegisterComponent,
|
31
|
pathMatch: 'full'
|
32
|
},
|
33
|
{
|
34
|
path: 'literature',
|
35
|
component: SRLiteratureComponent
|
36
|
},
|
37
|
]
|
38
|
},
|
39
|
{
|
40
|
path: 'update',
|
41
|
children: [
|
42
|
{
|
43
|
path: '',
|
44
|
component: SourcesUpdateComponent
|
45
|
},
|
46
|
{
|
47
|
path: 'repo',
|
48
|
component: SourcesUpdateRepoComponent
|
49
|
}
|
50
|
]
|
51
|
}
|
52
|
]
|
53
|
}
|
54
|
];
|
55
|
|
56
|
@NgModule ({
|
57
|
imports: [RouterModule.forChild(sourcesRoutes)],
|
58
|
exports: [RouterModule]
|
59
|
})
|
60
|
|
61
|
export class SourcesRouting {}
|