Merge "Jointjs integration with angular"
[ccsdk/cds.git] / cds-ui / client / src / app / app-routing.module.ts
1 /*
2 ============LICENSE_START==========================================
3 ===================================================================
4 Copyright (C) 2018 IBM Intellectual Property. All rights reserved.
5
6 Modifications Copyright (C) 2019 TechMahindra
7 ===================================================================
8
9 Unless otherwise specified, all software contained herein is licensed
10 under the Apache License, Version 2.0 (the License);
11 you may not use this software except in compliance with the License.
12 You may obtain a copy of the License at
13
14     http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21 ============LICENSE_END============================================
22 */
23
24 import { NgModule } from '@angular/core';
25 import { Routes, RouterModule } from '@angular/router';
26 import { HomeComponent } from './common/shared/components/home/home.component';
27
28
29 const routes: Routes = [
30 {
31   path: '',
32   component: HomeComponent,
33    children: [
34     {
35       path: 'blueprint',
36       loadChildren: './feature-modules/blueprint/blueprint.module#BlueprintModule'
37     },
38     {
39       path: 'resource-definition',
40       loadChildren: './feature-modules/resource-definition/resource-definition.module#ResourceDefinitionModule'
41     },
42     {
43         path: 'controller-catalog',
44         loadChildren: './feature-modules/controller-catalog/controller-catalog.module#ControllerCatalogModule'
45     },
46     {
47       path: 'blueprint-designer',
48       loadChildren: './feature-modules/blueprint-designer/blueprint-designer.module#BlueprintDesignerModule'
49     }
50   ]
51 }
52 ];
53
54 @NgModule({
55   imports: [RouterModule.forRoot(routes)],
56   exports: [RouterModule]
57 })
58 export class AppRoutingModule { }