1
|
import { RouterModule, Routes } from "@angular/router";
|
2
|
import { NgModule } from "@angular/core";
|
3
|
import { ContentEventsComponent } from "./content-events.component";
|
4
|
import { ContentComponent } from "./content.component";
|
5
|
import { ContentNotificationsComponent } from "./content-notifications.component";
|
6
|
import { AuthGuardService } from '../../services/auth-guard.service';
|
7
|
import { ContentEventsOfRepositoryComponent } from './content-events-of-repository.component';
|
8
|
import { ContentEventsOfRepoEventslistComponent } from './content-events-of-repo-eventslist.component';
|
9
|
import { ContentNotificationsOfSubscriptionComponent } from './content-notifications-of-subscription.component';
|
10
|
|
11
|
const contentRoutes: Routes = [
|
12
|
{
|
13
|
path: '',
|
14
|
component: ContentComponent,
|
15
|
children: [
|
16
|
{
|
17
|
path: 'events',
|
18
|
component: ContentEventsComponent,
|
19
|
},
|
20
|
{
|
21
|
path: 'events/:name',
|
22
|
component: ContentEventsOfRepositoryComponent,
|
23
|
},
|
24
|
{
|
25
|
path: 'events/:name/:topic',
|
26
|
component: ContentEventsOfRepoEventslistComponent,
|
27
|
},
|
28
|
{
|
29
|
path: 'notifications',
|
30
|
component: ContentNotificationsComponent,
|
31
|
},
|
32
|
{
|
33
|
path: 'notifications/:id',
|
34
|
component: ContentNotificationsOfSubscriptionComponent,
|
35
|
}
|
36
|
]
|
37
|
}
|
38
|
];
|
39
|
|
40
|
@NgModule ({
|
41
|
imports: [RouterModule.forChild(contentRoutes)],
|
42
|
exports: [RouterModule]
|
43
|
})
|
44
|
|
45
|
export class ContentRouting {}
|