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', ['ngRoute', 'app.common.services']) 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 }) 39 .when('/server-health/inventory', { 40 'template': require('./controllers/inventory-controller.html'), 41 'controller': 'inventoryController', 42 authenticated: true 43 }) 44 .when('/server-health/sensors-overview', { 45 'template': 46 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', { 56 'template': require('./controllers/log-controller.html'), 57 'controller': 'logController', 58 authenticated: true 59 }); 60 } 61 ]); 62 63})(window.angular); 64