blob: acc7f2c850b527470f9a96f0e79c3b7e9dfc8930 [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
6 * @version 0.0.1
7 */
8
9window.angular && (function (angular) {
10 'use strict';
11
12 angular
13 .module('app.serverControl', [
14 'ngRoute',
15 'app.constants',
16 'app.common.services'
17 ])
18 // Route configuration
19 .config(['$routeProvider', function ($routeProvider) {
20 $routeProvider
21 .when('/server-control/bmc-reboot', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070022 'template': require('./controllers/bmc-reboot-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050023 'controller': 'bmcRebootController',
24 authenticated: true
25 })
Michael Davis9dd479d2017-08-18 16:35:00 -050026 .when('/server-control/server-led', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070027 'template': require('../server-health/controllers/unit-id-controller.html'),
Michael Davis9dd479d2017-08-18 16:35:00 -050028 'controller': 'unitIdController',
29 authenticated: true
30 })
Iftekharul Islamcd789502017-04-19 14:37:55 -050031 .when('/server-control/power-operations', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070032 'template': require('./controllers/power-operations-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050033 'controller': 'powerOperationsController',
34 authenticated: true
35 })
36 .when('/server-control/remote-console', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070037 'template': require('./controllers/remote-console-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050038 'controller': 'remoteConsoleController',
39 authenticated: true
40 })
Iftekharul Islamc4172b52017-09-06 10:43:20 -050041 .when('/server-control/remote-console-window', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070042 'template': require('./controllers/remote-console-window-controller.html'),
Iftekharul Islamc4172b52017-09-06 10:43:20 -050043 'controller': 'remoteConsoleWindowController',
44 authenticated: true
45 })
Iftekharul Islamcd789502017-04-19 14:37:55 -050046 .when('/server-control', {
Ed Tanousbbcf6702017-10-06 13:53:06 -070047 'template': require('./controllers/power-operations-controller.html'),
Iftekharul Islamcd789502017-04-19 14:37:55 -050048 'controller': 'powerOperationsController',
49 authenticated: true
50 });
51 }]);
52
53})(window.angular);