blob: 96172d86a8c194880088a061ce5ab851fdc2ba01 [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
Gunnar Mills2b9a0d92018-07-11 15:10:08 -050012 .module('app.serverHealth', ['ngRoute', 'app.common.services'])
Andrew Geisslerd27bb132018-05-24 11:07:27 -070013 // Route configuration
14 .config([
15 '$routeProvider',
16 function($routeProvider) {
17 $routeProvider
18 .when('/server-health/event-log', {
19 'template': require('./controllers/log-controller.html'),
20 'controller': 'logController',
21 authenticated: true
22 })
23 .when('/server-health/event-log/:type', {
24 'template': require('./controllers/log-controller.html'),
25 'controller': 'logController',
26 authenticated: true
27 })
28 .when('/server-health/event-log/:type/:id', {
29 'template': require('./controllers/log-controller.html'),
30 'controller': 'logController',
31 authenticated: true
32 })
33 .when('/server-health/inventory-overview', {
34 'template':
35 require('./controllers/inventory-overview-controller.html'),
36 'controller': 'inventoryOverviewController',
37 authenticated: true
38 })
Andrew Geisslerd27bb132018-05-24 11:07:27 -070039 .when('/server-health/sensors-overview', {
40 'template':
41 require('./controllers/sensors-overview-controller.html'),
42 'controller': 'sensorsOverviewController',
43 authenticated: true
44 })
AppaRao Pulib1289ec2018-11-14 20:33:30 +053045 .when('/server-health/sys-log', {
46 'template': require('./controllers/syslog-controller.html'),
47 'controller': 'sysLogController',
48 authenticated: true
49 })
Andrew Geisslerd27bb132018-05-24 11:07:27 -070050 .when('/server-health', {
51 'template': require('./controllers/log-controller.html'),
52 'controller': 'logController',
53 authenticated: true
54 });
55 }
56 ]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050057})(window.angular);