Enhancement on Dashboard
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / controller / policyController.js
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 angular.module('abs').requires.push('ui.grid','ui.grid.pagination','ui.grid.selection', 'ui.grid.exporter', 'ui.grid.edit', 'ui.grid.autoResize',
21         'ui.grid.resizeColumns','ngRoute', 'pascalprecht.translate', 'ngCookies', 'ui-notification', 'ui.grid.treeView');
22 app.config(function($routeProvider) {
23         $routeProvider
24         .when('/Editor', {
25                 templateUrl:'app/policyApp/policy-models/Editor/templates/policyEditor.html',
26                 controller : "PolicyManagerController"
27         })
28         .when('/Dictionary', {
29                 templateUrl: 'app/policyApp/policy-models/policy_Dictionary.html',
30                 controller : "dictionaryTabController"
31         })
32         .when('/Pdp', {
33                 templateUrl: 'app/policyApp/policy-models/policy_PDPManagement.html',
34                 controller : "pdpTabController"
35         })
36         .when('/Push', {
37                 templateUrl: 'app/policyApp/policy-models/policy_AutoPush.html',
38                 controller : "policyPushController"
39         })
40         .when('/Admin', {
41                 templateUrl: 'app/policyApp/policy-models/policy_AdminTab.html',
42                 controller : "policyAdminController"
43         })
44         .when('/Roles', {
45                 templateUrl: 'app/policyApp/policy-models/policy_Roles.html',
46                 controller : "policyRolesController"
47         })
48         .when('/Dashboard', {
49                 templateUrl: 'app/policyApp/policy-models/policy_DashboardLogging.html',
50                 controller : "policyDashboardController"
51         })
52         .when('/Dashboard_Health', {
53                 templateUrl: 'app/policyApp/policy-models/policy_DashboardHealth.html',
54                 controller : "policyDashboardHealthController"
55         })
56         .when('/Dashboard_crud', {
57                 templateUrl: 'app/policyApp/policy-models/policy_DashboardCRUD.html',
58                 controller : "policyDashboardCRUDDataController"
59         })
60         .when('/policy_SearchFilter', {
61                 templateUrl: 'app/policyApp/policy-models/policy_SearchFilter.html',
62                 controller : "PolicySearchController"
63         })
64         .otherwise({
65                 templateUrl:'app/policyApp/policy-models/Editor/templates/policyEditor.html',
66                 controller : "PolicyManagerController"  
67         });
68         
69 });