1/** 2 * A module for the serverHealth 3 * 4 * @module app/server-health/index 5 * @exports app/server-health/index 6 */ 7 8window.angular && (function (angular) { 9 'use strict'; 10 11 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 }]); 71 72})(window.angular); 73