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('app.serverControl', [ 13 'ngRoute', 14 'app.constants', 15 'app.common.services' 16 ]) 17 // Route configuration 18 .config(['$routeProvider', 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('../server-health/controllers/unit-id-controller.html'), 27 'controller': 'unitIdController', 28 authenticated: true 29 }) 30 .when('/server-control/power-operations', { 31 'template': require('./controllers/power-operations-controller.html'), 32 'controller': 'powerOperationsController', 33 authenticated: true 34 }) 35 .when('/server-control/remote-console', { 36 'template': require('./controllers/remote-console-controller.html'), 37 'controller': 'remoteConsoleController', 38 authenticated: true 39 }) 40 .when('/server-control/remote-console-window', { 41 'template': require('./controllers/remote-console-window-controller.html'), 42 'controller': 'remoteConsoleWindowController', 43 authenticated: true 44 }) 45 .when('/server-control', { 46 'template': require('./controllers/power-operations-controller.html'), 47 'controller': 'powerOperationsController', 48 authenticated: true 49 }); 50 }]); 51 52})(window.angular); 53