summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/frontend/src/app/app-routing.module.ts
blob: 7e5c4c63d8387c60150d9f398741ff2ec7d26844 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {LoginComponent} from './pages/login/login.component';
import {DashboardComponent} from './pages/dashboard/dashboard.component';
import {ImageComponent} from './pages/image/image.component';
import {RepositoryComponent} from './pages/repository/repository.component';
import {HardwareProfileComponent} from './pages/hardware-profile/hardware-profile.component';
import {HardwareComponent} from './pages/hardware/hardware.component';
import {OrganizationalUnitComponent} from './pages/organizational-unit/organizational-unit.component';
import {CommandComponent} from './pages/command/command.component';
import {EditCommandComponent} from './pages/command/edit-command/edit-command.component';
import {TraceComponent} from './pages/trace/trace.component';
import {NetbootComponent} from './pages/netboot/netboot.component';
import {NetbootEditComponent} from './pages/netboot/edit/netboot-edit.component';
import {HardwareComponentComponent} from './pages/hardware-component/hardware-component.component';
import {ImageEditComponent} from './pages/image/edit/image-edit.component';
import {ProfileComponent} from './pages/profile/profile.component';
import {OrganizationalUnitEditComponent} from './pages/organizational-unit/edit/organizational-unit-edit.component';
import {ClientComponent} from './pages/client/client.component';


const routes: Routes = [
  { path: '',   redirectTo: '/login', pathMatch: 'full' },
  {
    path: 'login',
    component: LoginComponent,
    data: {
      customLayout: true
    }
  },
  { path: 'app',
    data: {
      customLayout: false
    },
    children: [
      {
        path: 'dashboard',
        component: DashboardComponent
      },
      {
        path: 'ous',
        component: OrganizationalUnitComponent
      },
      {
        path: 'ous/create',
        component: OrganizationalUnitEditComponent
      },
      {
        path: 'ous/edit/:id',
        component: OrganizationalUnitEditComponent
      },
      {
        path: 'clients/create',
        component: ClientComponent
      },
      {
        path: 'clients/edit/:id',
        component: ClientComponent
      },
      {
        path: 'clients/dhcp',
        component: ClientComponent
      },
      {
        path: 'images',
        component: ImageComponent
      },
      {
        path: 'images/create',
        component: ImageEditComponent
      },
      {
        path: 'images/edit/:id',
        component: ImageEditComponent
      },
      {
        path: 'repositories',
        component: RepositoryComponent
      },
      {
        path: 'hardware',
        component: HardwareComponent,
      },
      {
        path: 'hardware/profile/create',
        component: HardwareProfileComponent
      },
      {
        path: 'hardware/component/create',
        component: HardwareComponentComponent
      },
      {
        path: 'hardware/profile/:id',
        component: HardwareProfileComponent
      },
      {
        path: 'commands',
        component: CommandComponent
      },
      {
        path: 'commands/:id',
        component: EditCommandComponent
      },
      {
        path: 'commands/create',
        component: EditCommandComponent
      },
      {
        path: 'traces',
        component: TraceComponent
      },
      {
        path: 'netboots',
        component: NetbootComponent
      },
      {
        path: 'netboots/:id/edit',
        component: NetbootEditComponent
      },
      {
        path: 'netboots/create',
        component: NetbootEditComponent
      },
      {
        path: 'user/profile',
        component: ProfileComponent
      }

    ]
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes, { useHash: true })],
  exports: [RouterModule]
})
export class AppRoutingModule { }