blob: 797f144181ae822cb7894331cc90190b11869316 [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
Andrew Geisslerba5e3f32018-05-24 10:58:00 -07008window.angular && (function(angular) {
9 'use strict';
Iftekharul Islamcd789502017-04-19 14:37:55 -050010
Andrew Geisslerba5e3f32018-05-24 10:58:00 -070011 angular
Andrew Geisslerd27bb132018-05-24 11:07:27 -070012 .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 ]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050057
58})(window.angular);