blob: 41cb1ac5ebba02f98f6e920b9e591c94e98ee4d4 [file] [log] [blame]
Iftekharul Islamcd789502017-04-19 14:37:55 -05001/**
2 * A module for the serverControl
3 *
4 * @module app/server-control/index
5 * @exports app/server-control/index
Iftekharul Islamcd789502017-04-19 14:37:55 -05006 */
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', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070021 'template': require('./controllers/bmc-reboot-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050022 'controller': 'bmcRebootController',
23 authenticated: true
24 })
Michael Davis9dd479d2017-08-18 16:35:00 -050025 .when('/server-control/server-led', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070026 'template': require('../server-health/controllers/unit-id-controller.html'),
Michael Davis9dd479d2017-08-18 16:35:00 -050027 'controller': 'unitIdController',
28 authenticated: true
29 })
Iftekharul Islamcd789502017-04-19 14:37:55 -050030 .when('/server-control/power-operations', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070031 'template': require('./controllers/power-operations-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050032 'controller': 'powerOperationsController',
33 authenticated: true
34 })
35 .when('/server-control/remote-console', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070036 'template': require('./controllers/remote-console-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050037 'controller': 'remoteConsoleController',
38 authenticated: true
39 })
Iftekharul Islamc4172b52017-09-06 10:43:20 -050040 .when('/server-control/remote-console-window', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070041 'template': require('./controllers/remote-console-window-controller.html'),
Iftekharul Islamc4172b52017-09-06 10:43:20 -050042 'controller': 'remoteConsoleWindowController',
43 authenticated: true
44 })
Iftekharul Islamcd789502017-04-19 14:37:55 -050045 .when('/server-control', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070046 'template': require('./controllers/power-operations-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050047 'controller': 'powerOperationsController',
48 authenticated: true
49 });
50 }]);
51
52})(window.angular);