Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 1 | /** |
| 2 | * A module for the serverHealth |
| 3 | * |
| 4 | * @module app/server-health/index |
| 5 | * @exports app/server-health/index |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 8 | window.angular && (function(angular) { |
| 9 | 'use strict'; |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 10 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 11 | angular |
Gunnar Mills | 2b9a0d9 | 2018-07-11 15:10:08 -0500 | [diff] [blame] | 12 | .module('app.serverHealth', ['ngRoute', 'app.common.services']) |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame] | 13 | // 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 Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame] | 39 | .when('/server-health/sensors-overview', { |
| 40 | 'template': |
| 41 | require('./controllers/sensors-overview-controller.html'), |
| 42 | 'controller': 'sensorsOverviewController', |
| 43 | authenticated: true |
| 44 | }) |
AppaRao Puli | b1289ec | 2018-11-14 20:33:30 +0530 | [diff] [blame] | 45 | .when('/server-health/sys-log', { |
| 46 | 'template': require('./controllers/syslog-controller.html'), |
| 47 | 'controller': 'sysLogController', |
| 48 | authenticated: true |
| 49 | }) |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame] | 50 | .when('/server-health', { |
| 51 | 'template': require('./controllers/log-controller.html'), |
| 52 | 'controller': 'logController', |
| 53 | authenticated: true |
| 54 | }); |
| 55 | } |
| 56 | ]); |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 57 | })(window.angular); |