blob: 6d008798e823a97a57a598f2f7459592d892ef83 [file] [log] [blame]
Iftekharul Islamcd789502017-04-19 14:37:55 -05001/**
2 * A module for the serverHealth
3 *
4 * @module app/server-health/index
5 * @exports app/server-health/index
6 * @version 0.0.1
7 */
8
9window.angular && (function (angular) {
10 'use strict';
11
12 angular
13 .module('app.serverHealth', [
14 'ngRoute',
15 'app.constants',
16 'app.common.services'
17 ])
18 // Route configuration
19 .config(['$routeProvider', function ($routeProvider) {
20 $routeProvider
21 .when('/server-health/event-log', {
22 'templateUrl': 'server-health/controllers/log-controller.html',
23 'controller': 'logController',
24 authenticated: true
25 })
26 .when('/server-health/inventory-overview', {
27 'templateUrl': 'server-health/controllers/inventory-overview-controller.html',
28 'controller': 'inventoryOverviewController',
29 authenticated: true
30 })
31 .when('/server-health/inventory', {
32 'templateUrl': 'server-health/controllers/inventory-controller.html',
33 'controller': 'inventoryController',
34 authenticated: true
35 })
36 .when('/server-health/sensors-overview', {
37 'templateUrl': 'server-health/controllers/sensors-overview-controller.html',
38 'controller': 'sensorsOverviewController',
39 authenticated: true
40 })
Iftekharul Islamd2269e22017-05-02 09:32:45 -050041 .when('/server-health/sensors/:type', {
Iftekharul Islamcd789502017-04-19 14:37:55 -050042 'templateUrl': 'server-health/controllers/sensors-controller.html',
43 'controller': 'sensorsController',
44 authenticated: true
45 })
46 .when('/server-health/power-consumption', {
47 'templateUrl': 'server-health/controllers/power-consumption-controller.html',
48 'controller': 'powerConsumptionController',
49 authenticated: true
50 })
51 .when('/server-health/unit-id', {
52 'templateUrl': 'server-health/controllers/unit-id-controller.html',
53 'controller': 'unitIdController',
54 authenticated: true
55 })
56 .when('/server-health/diagnostics', {
57 'templateUrl': 'server-health/controllers/diagnostics-controller.html',
58 'controller': 'diagnosticsController',
59 authenticated: true
60 })
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050061 .when('/server-health', {
62 'templateUrl': 'server-health/controllers/log-controller.html',
63 'controller': 'logController',
64 authenticated: true
65 });
Iftekharul Islamcd789502017-04-19 14:37:55 -050066 }]);
67
68})(window.angular);