Change navigation structure
Change-Id: I12c819293ce1eda188dc9f257ae9370f1b73cb18
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
diff --git a/app/server-health/index.js b/app/server-health/index.js
new file mode 100644
index 0000000..68a9a90
--- /dev/null
+++ b/app/server-health/index.js
@@ -0,0 +1,63 @@
+/**
+ * A module for the serverHealth
+ *
+ * @module app/server-health/index
+ * @exports app/server-health/index
+ * @version 0.0.1
+ */
+
+window.angular && (function (angular) {
+ 'use strict';
+
+ angular
+ .module('app.serverHealth', [
+ 'ngRoute',
+ 'app.constants',
+ 'app.common.services'
+ ])
+ // Route configuration
+ .config(['$routeProvider', function ($routeProvider) {
+ $routeProvider
+ .when('/server-health/event-log', {
+ 'templateUrl': 'server-health/controllers/log-controller.html',
+ 'controller': 'logController',
+ authenticated: true
+ })
+ .when('/server-health/inventory-overview', {
+ 'templateUrl': 'server-health/controllers/inventory-overview-controller.html',
+ 'controller': 'inventoryOverviewController',
+ authenticated: true
+ })
+ .when('/server-health/inventory', {
+ 'templateUrl': 'server-health/controllers/inventory-controller.html',
+ 'controller': 'inventoryController',
+ authenticated: true
+ })
+ .when('/server-health/sensors-overview', {
+ 'templateUrl': 'server-health/controllers/sensors-overview-controller.html',
+ 'controller': 'sensorsOverviewController',
+ authenticated: true
+ })
+ .when('/server-health/sensors', {
+ 'templateUrl': 'server-health/controllers/sensors-controller.html',
+ 'controller': 'sensorsController',
+ authenticated: true
+ })
+ .when('/server-health/power-consumption', {
+ 'templateUrl': 'server-health/controllers/power-consumption-controller.html',
+ 'controller': 'powerConsumptionController',
+ authenticated: true
+ })
+ .when('/server-health/unit-id', {
+ 'templateUrl': 'server-health/controllers/unit-id-controller.html',
+ 'controller': 'unitIdController',
+ authenticated: true
+ })
+ .when('/server-health/diagnostics', {
+ 'templateUrl': 'server-health/controllers/diagnostics-controller.html',
+ 'controller': 'diagnosticsController',
+ authenticated: true
+ })
+ }]);
+
+})(window.angular);