blob: c090f826fb7314e07eaf7de0918e10b8e89aa2f4 [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
Iftekharul Islamcd789502017-04-19 14:37:55 -05006 */
7
Andrew Geisslerba5e3f32018-05-24 10:58:00 -07008window.angular && (function(angular) {
9 'use strict';
Iftekharul Islamcd789502017-04-19 14:37:55 -050010
Andrew Geisslerba5e3f32018-05-24 10:58:00 -070011 angular
12 .module('app.serverHealth', [
13 'ngRoute',
14 'app.constants',
15 'app.common.services'
16 ])
17 // Route configuration
18 .config(['$routeProvider', function($routeProvider) {
19 $routeProvider
20 .when('/server-health/event-log', {
21 'template': require('./controllers/log-controller.html'),
22 'controller': 'logController',
23 authenticated: true
24 })
25 .when('/server-health/event-log/:type', {
26 'template': require('./controllers/log-controller.html'),
27 'controller': 'logController',
28 authenticated: true
29 })
30 .when('/server-health/event-log/:type/:id', {
31 'template': require('./controllers/log-controller.html'),
32 'controller': 'logController',
33 authenticated: true
34 })
35 .when('/server-health/inventory-overview', {
36 'template': require('./controllers/inventory-overview-controller.html'),
37 'controller': 'inventoryOverviewController',
38 authenticated: true
39 })
40 .when('/server-health/inventory', {
41 'template': require('./controllers/inventory-controller.html'),
42 'controller': 'inventoryController',
43 authenticated: true
44 })
45 .when('/server-health/sensors-overview', {
46 'template': require('./controllers/sensors-overview-controller.html'),
47 'controller': 'sensorsOverviewController',
48 authenticated: true
49 })
50 .when('/server-health/sensors/:type', {
51 'template': require('./controllers/sensors-controller.html'),
52 'controller': 'sensorsController',
53 authenticated: true
54 })
55 .when('/server-health/power-consumption', {
56 'template': require('./controllers/power-consumption-controller.html'),
57 'controller': 'powerConsumptionController',
58 authenticated: true
59 })
60 .when('/server-health/diagnostics', {
61 'template': require('./controllers/diagnostics-controller.html'),
62 'controller': 'diagnosticsController',
63 authenticated: true
64 })
65 .when('/server-health', {
66 'template': require('./controllers/log-controller.html'),
67 'controller': 'logController',
68 authenticated: true
69 });
70 }]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050071
72})(window.angular);