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