blob: c5bdd2821af2098b14df0937d7525f8697ca87e8 [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
Andrew Geisslerd27bb132018-05-24 11:07:27 -070012 .module(
13 'app.serverHealth',
14 ['ngRoute', 'app.constants', 'app.common.services'])
15 // Route configuration
16 .config([
17 '$routeProvider',
18 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':
37 require('./controllers/inventory-overview-controller.html'),
38 'controller': 'inventoryOverviewController',
39 authenticated: true
40 })
41 .when('/server-health/inventory', {
42 'template': require('./controllers/inventory-controller.html'),
43 'controller': 'inventoryController',
44 authenticated: true
45 })
46 .when('/server-health/sensors-overview', {
47 'template':
48 require('./controllers/sensors-overview-controller.html'),
49 'controller': 'sensorsOverviewController',
50 authenticated: true
51 })
52 .when('/server-health/sensors/:type', {
53 'template': require('./controllers/sensors-controller.html'),
54 'controller': 'sensorsController',
55 authenticated: true
56 })
57 .when('/server-health/power-consumption', {
58 'template':
59 require('./controllers/power-consumption-controller.html'),
60 'controller': 'powerConsumptionController',
61 authenticated: true
62 })
63 .when('/server-health/diagnostics', {
64 'template':
65 require('./controllers/diagnostics-controller.html'),
66 'controller': 'diagnosticsController',
67 authenticated: true
68 })
69 .when('/server-health', {
70 'template': require('./controllers/log-controller.html'),
71 'controller': 'logController',
72 authenticated: true
73 });
74 }
75 ]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050076
77})(window.angular);