blob: 1b8aad50b7022bf02e7da38663da570bedb84206 [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', {
Gunnar Mills4129f402018-07-11 16:40:58 -050024 'template': require('./controllers/server-led-controller.html'),
25 'controller': 'serverLEDController',
Andrew Geisslerd27bb132018-05-24 11:07:27 -070026 authenticated: true
27 })
28 .when('/server-control/power-operations', {
29 'template':
30 require('./controllers/power-operations-controller.html'),
31 'controller': 'powerOperationsController',
32 authenticated: true
33 })
Gunnar Mills52b8bde2018-06-21 13:16:54 -050034 .when('/server-control/power-usage', {
35 'template':
36 require('./controllers/power-usage-controller.html'),
37 'controller': 'powerUsageController',
38 authenticated: true
39 })
Andrew Geisslerd27bb132018-05-24 11:07:27 -070040 .when('/server-control/remote-console', {
41 'template':
42 require('./controllers/remote-console-controller.html'),
Andrew Geisslerd27bb132018-05-24 11:07:27 -070043 authenticated: true
44 })
45 .when('/server-control/remote-console-window', {
46 'template': require(
47 './controllers/remote-console-window-controller.html'),
48 'controller': 'remoteConsoleWindowController',
49 authenticated: true
50 })
Ed tanouse9211cb2018-04-22 10:53:28 -070051 .when('/server-control/kvm', {
52 'template': require('./controllers/kvm-controller.html'),
53 'controller': 'kvmController',
54 authenticated: true
55 })
Andrew Geisslerd27bb132018-05-24 11:07:27 -070056 .when('/server-control', {
57 'template':
58 require('./controllers/power-operations-controller.html'),
59 'controller': 'powerOperationsController',
60 authenticated: true
61 });
62 }
63 ]);
Iftekharul Islamcd789502017-04-19 14:37:55 -050064})(window.angular);