1/** 2 * A module for the overview 3 * 4 * @module app/overview/index 5 * @exports app/overview/index 6 * @version 0.0.1 7 */ 8 9window.angular && (function (angular) { 10 'use strict'; 11 12 angular 13 .module('app.overview', [ 14 'ngRoute', 15 'app.constants', 16 'app.common.services' 17 ]) 18 // Route configuration 19 .config(['$routeProvider', function ($routeProvider) { 20 $routeProvider 21 .when('/overview/sensors-overview', { 22 'templateUrl': 'overview/controllers/sensors-overview-controller.html', 23 'controller': 'sensorsOverviewController', 24 authenticated: true 25 }) 26 .when('/overview/sensors', { 27 'templateUrl': 'overview/controllers/sensors-controller.html', 28 'controller': 'sensorsController', 29 authenticated: true 30 }) 31 .when('/overview/bmc-reboot', { 32 'templateUrl': 'overview/controllers/bmc-reboot-controller.html', 33 'controller': 'bmcRebootController', 34 authenticated: true 35 }) 36 .when('/overview/log', { 37 'templateUrl': 'overview/controllers/log-controller.html', 38 'controller': 'logController', 39 authenticated: true 40 }) 41 .when('/overview/power-operations', { 42 'templateUrl': 'overview/controllers/power-operations-controller.html', 43 'controller': 'powerOperationsController', 44 authenticated: true 45 }) 46 .when('/overview/unit-id', { 47 'templateUrl': 'overview/controllers/unit-id-controller.html', 48 'controller': 'unitIdController', 49 authenticated: true 50 }) 51 .when('/overview/system', { 52 'templateUrl': 'overview/controllers/system-overview-controller.html', 53 'controller': 'systemOverviewController', 54 authenticated: true 55 }); 56 }]); 57 58})(window.angular); 59