blob: 0b0fa93d6b2bb3a38d5ef84a9c0df24e16fe5ce0 [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
Gunnar Mills2b9a0d92018-07-11 15:10:08 -050012 .module('app.serverControl', ['ngRoute', 'app.common.services'])
Andrew Geisslerd27bb132018-05-24 11:07:27 -070013 // Route configuration
14 .config([
15 '$routeProvider',
16 function($routeProvider) {
17 $routeProvider
18 .when('/server-control/bmc-reboot', {
19 'template': require('./controllers/bmc-reboot-controller.html'),
20 'controller': 'bmcRebootController',
21 authenticated: true
22 })
23 .when('/server-control/server-led', {
24 'template': require(
25 '../server-health/controllers/unit-id-controller.html'),
26 'controller': 'unitIdController',
27 authenticated: true
28 })
29 .when('/server-control/power-operations', {
30 'template':
31 require('./controllers/power-operations-controller.html'),
32 'controller': 'powerOperationsController',
33 authenticated: true
34 })
35 .when('/server-control/remote-console', {
36 'template':
37 require('./controllers/remote-console-controller.html'),
38 'controller': 'remoteConsoleController',
39 authenticated: true
40 })
41 .when('/server-control/remote-console-window', {
42 'template': require(
43 './controllers/remote-console-window-controller.html'),
44 'controller': 'remoteConsoleWindowController',
45 authenticated: true
46 })
47 .when('/server-control', {
48 'template':
49 require('./controllers/power-operations-controller.html'),
50 'controller': 'powerOperationsController',
51 authenticated: true
52 });
53 }
54 ]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050055
56})(window.angular);