Project

General

Profile

1 50216 myrto.kouk
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 50746 myrto.kouk
import { ContentEventsOfRepoEventslistComponent } from './content-events-of-repo-eventslist.component';
9 50883 myrto.kouk
import { ContentNotificationsOfSubscriptionComponent } from './content-notifications-of-subscription.component';
10 50041 myrto.kouk
11
const contentRoutes: Routes = [
12
  {
13 51793 myrto.kouk
    path: '',
14 50041 myrto.kouk
    component: ContentComponent,
15
    children: [
16
      {
17
        path: 'events',
18 50746 myrto.kouk
        component: ContentEventsComponent,
19 50041 myrto.kouk
      },
20
      {
21 50746 myrto.kouk
        path: 'events/:name',
22
        component: ContentEventsOfRepositoryComponent,
23
      },
24
      {
25
        path: 'events/:name/:topic',
26
        component: ContentEventsOfRepoEventslistComponent,
27
      },
28
      {
29 50041 myrto.kouk
        path: 'notifications',
30 50746 myrto.kouk
        component: ContentNotificationsComponent,
31 50883 myrto.kouk
      },
32
      {
33
        path: 'notifications/:id',
34
        component: ContentNotificationsOfSubscriptionComponent,
35 50041 myrto.kouk
      }
36
    ]
37
  }
38 50216 myrto.kouk
];
39 50041 myrto.kouk
40
@NgModule ({
41
  imports: [RouterModule.forChild(contentRoutes)],
42
  exports: [RouterModule]
43
})
44
45
export class ContentRouting {}