added svcapi ui and camunda code
[it/otf.git] / otf-frontend / client / src / app / layout / layout-routing.module.ts
1 /*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
2 #                                                                              #\r
3 #   Licensed under the Apache License, Version 2.0 (the "License");            #\r
4 #   you may not use this file except in compliance with the License.           #\r
5 #   You may obtain a copy of the License at                                    #\r
6 #                                                                              #\r
7 #       http://www.apache.org/licenses/LICENSE-2.0                             #\r
8 #                                                                              #\r
9 #   Unless required by applicable law or agreed to in writing, software        #\r
10 #   distributed under the License is distributed on an "AS IS" BASIS,          #\r
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
12 #   See the License for the specific language governing permissions and        #\r
13 #   limitations under the License.                                             #\r
14 ##############################################################################*/\r
15 \r
16 \r
17 import {NgModule} from '@angular/core';\r
18 import {RouterModule, Routes} from '@angular/router';\r
19 import {LayoutComponent} from './layout.component';\r
20 import {AdminGuard} from "../shared/guard/admin.guard";\r
21 \r
22 const routes: Routes = [\r
23     {\r
24         path: '',\r
25         component: LayoutComponent,\r
26         children: [\r
27             {path: '', redirectTo: 'dashboard', pathMatch: 'prefix'},\r
28             {path: 'test-definitions', loadChildren: './tests/tests.module#TestsModule'},\r
29             {path: 'settings', loadChildren: './settings/settings.module#SettingsModule'},\r
30             {path: 'manage-group', loadChildren: './manage-group/manage-group.module#ManageGroupModule'},\r
31             {path: 'feedback', loadChildren: './feedback/feedback.module#FeedbackModule'},\r
32             {path: 'dashboard', loadChildren: './dashboard/dashboard.module#DashboardModule'},\r
33             {path: 'scheduling', loadChildren: './scheduling/scheduling.module#SchedulingModule'},\r
34             {path: 'onboarding', loadChildren: './onboarding/onboarding.module#OnboardingModule'},\r
35             {path: 'control-panel', loadChildren: './control-panel/control-panel.module#ControlPanelModule'},\r
36             {path: 'test-heads', loadChildren: './virtual-test-heads/virtual-test-heads.module#VirtualTestHeadsModule'},\r
37             {path: 'test-instances', loadChildren: './test-instances-catalog/test-instances-catalog.module#TestInstancesCatalogModule'},\r
38             {path: 'test-executions', loadChildren: './test-executions-catalog/test-executions-catalog.module#TestExecutionsCatalogModule'},\r
39             {path: 'user-management', loadChildren: './user-management/user-management.module#UserManagementModule', canActivate: [AdminGuard]},\r
40             {path: 'modeler', loadChildren: './modeler/modeler.module#ModelerModule'}\r
41             \r
42         ]\r
43     }\r
44 ];\r
45 \r
46 @NgModule({\r
47     imports: [RouterModule.forChild(routes)],\r
48     exports: [RouterModule]\r
49 })\r
50 export class LayoutRoutingModule {\r
51 }\r