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