1 /* Copyright (c) 2019 AT&T Intellectual Property. #
\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
7 # http://www.apache.org/licenses/LICENSE-2.0 #
\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
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
22 const routes: Routes = [
\r
25 component: LayoutComponent,
\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
47 imports: [RouterModule.forChild(routes)],
\r
48 exports: [RouterModule]
\r
50 export class LayoutRoutingModule {
\r