forked from hashtopolis/web-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagents-routing.module.ts
More file actions
61 lines (57 loc) · 1.87 KB
/
agents-routing.module.ts
File metadata and controls
61 lines (57 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { AuthGuard } from "../core/_guards/auth.guard";
import { NgModule } from "@angular/core";
import { Routes, RouterModule } from '@angular/router';
import { AgentStatusComponent } from "./agent-status/agent-status.component";
import { PendingChangesGuard } from "../core/_guards/pendingchanges.guard";
import { ShowAgentsComponent } from "./show-agents/show-agents.component";
import { BenchmarkComponent } from "./benchmarks/benchmarks.component"
import { EditAgentComponent } from "./edit-agent/edit-agent.component";
import { NewAgentComponent } from "./new-agent/new-agent.component";
import { AgentGuard } from "../core/_guards/agent.guard";
const routes: Routes = [
{
path: '',
children: [
{
path: 'agent-status', component: AgentStatusComponent,
data: {
kind: 'agent-status',
breadcrumb: 'Agent Status'
},
canActivate: [AuthGuard,AgentGuard]},
{
path: 'new-agent', component: NewAgentComponent,
data: {
kind: 'new-agent',
breadcrumb: 'New Agent'
},
canActivate: [AuthGuard,AgentGuard]},
{
path: 'show-agents', component: ShowAgentsComponent,
data: {
kind: 'show-agents',
breadcrumb: 'Show Agent'
},
canActivate: [AuthGuard,AgentGuard]},
{
path: 'show-agents/:id/edit', component: EditAgentComponent,
data: {
kind: 'edit-agent',
breadcrumb: 'Edit Agent'
},
canActivate: [AuthGuard,AgentGuard]},
{
path: 'benchmarks', component: BenchmarkComponent,
data: {
kind: 'edit-agent',
breadcrumb: 'Edit Agent'
},
canActivate: [AuthGuard,AgentGuard]},
]
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class AgentsRoutingModule {}